How can I specify a port for the destination ip? When I do scp -p 0000
it still tries to connect on port 22, not the one I'm specifying.
scp svn_backup.tgz [email protected]:/path/to/new/svn/
How can I specify a port for the destination ip? When I do scp -p 0000
it still tries to connect on port 22, not the one I'm specifying.
scp svn_backup.tgz [email protected]:/path/to/new/svn/
Capital "P".
See
$ man scp
for more details.It's also noteworthy that the port specification must come before the file name, i.e.:
*won't work.