[关闭]
@ysongzybl 2015-04-28T18:55:31.000000Z 字数 276 阅读 787

SCP command port

bash linux


Use Uppercase P to specify port
Example:

  1. scp -P user@ipaddress:/path/tofile ./
  1. scp -P 1234 user@[ip address or host name]:/var/www/mywebsite/dumps/* /var/www/myNewPathOnCurrentLocalMachine

Reference:

http://stackoverflow.com/questions/10341032/scp-with-port-number-specified

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注