scp username@remotehost.com:foo.txt /algun/directorio/local
scp foo.txt username@remotehost.com:/algun/directorio/remoto/\{foo.txt,bar.txt} .
scp foo.txt username@remotehost.com:/algun/directorio/remoto
scp -r foo username@remotehost.com:/algun/directorio/remoto/bar
scp -P 1234 foo.txt username@remotehost.com:/algun/directorio/remoto
scp username@remotehost1.com:/algun/directorio/remoto/foo.txt \
username@remotehost2.com:/algun/directorio/remoto/
Para introducir la contraseña en la propia línea de comandos usamos sshpass
. Stackoverflow