scp with port number specified

前端 未结 12 880
有刺的猬
有刺的猬 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条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-29 17:53

    if you need copy local file to server (specify port )

    scp -P 3838 /the/source/file username@server.com:/destination/file
    

提交回复
热议问题