I found the scp syntax to be a bit non conventional here, so I am making a quick note to serve as reminder to anyone who finds this syntax less than intuitive.
To scp over a specified port use scp -P [port] ./myfile myuser@example.com:/mydir/
Whether you want to use scp to copy up to the remote host or down from the remote host, the port goes at the beginning of the command. Also, a capital -P is required.
0 comments:
Post a Comment