使用脚本,免密码登录

建立go.sh文件:html 写入以下内容bash #!/usr/bin/expect #!/bin/sh set hostname [lindex $argv 0] set timeout 1 set password yourpwd spawn ssh -l user $hostname expect "password:" send "$password\r" interact 进行
相关文章
相关标签/搜索