How do I copy files from my local to some remote server which hosts ssh on port other than default (22).
I usually connect to the server using
ssh firstname.lastname@example.org -p 2000
Now I need to copy files with scp
user@localbox:~$ scp ~/.ssh/id_rsa.pub email@example.com:~/.ssh/id_rsa_localbox.pub -p 2000
But this does not work.