scp with port number specified

前端 未结 12 681
有刺的猬
有刺的猬 2021-01-29 17:03

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         


        
12条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-29 17:37

    To backup all files in all directories to a remote Synology NAS using a different remote port:

    scp -P 10022 -r /media/data/somedata/* user@192.168.1.x:/var/services/homes/user/directory/

提交回复
热议问题