Download backup with `curl` or `wget`

Is there a simple way to ‘login’ via the commandline of a remote machine before issuing the wget to download the backup?