I\'m trying to scp a file from a remote server to my local machine. Only port 80 is accessible.
I tried:
scp -p 80 username@www.myserver.com:/root/file.t
This can be achived by specifying port via the -P switch:
-P
scp -i ~/keys/yourkey -P2222 file ubuntu@host:/directory/