1.安装 sshpass
- sudo apt-get install sshpass
2.携带密码登录
sshpass -p '12345678' ssh androidyue@10.0.5.10
注意上述必须要有单引号,不能为双引号。
1.安装 sshpass
2.携带密码登录
sshpass -p '12345678' ssh androidyue@10.0.5.10
注意上述必须要有单引号,不能为双引号。
转载于:https://my.oschina.net/yygh/blog/537310