Home Ssh相关(端口号,密码等等)(sshrelatedparameters)
Post
Cancel

Ssh相关(端口号,密码等等)(sshrelatedparameters)

公司使用了特殊的SSH 端口号,我总容易弄错,所以把相关的信息贴在这里: ( our server in company uses a special port rather than usual 22 which always making me confused.  so I have to post related tips here ) 

1. scp 例子:  ( upper case of "P")

$ scp -P 22022 ./ruby-1.9.3-p327.tar.gz [email protected]:/root/

2. ssh 例子:

ssh -p 22022 10.103.13.121 -l root  ( lower case of 'p')

3. sshpass例子:

sshpass -p 'your password here ' ssh -p 22022 10.103.13.121 -l root

This post is licensed under CC BY 4.0 by the author.