iTerm2免密登陆

建立一个登陆脚本web #!/usr/bin/expect set timeout 10 spawn ssh [lindex $argv 0]@[lindex $argv 1] expect { "(yes/no)?" {send "yes\n";exp_continue} "password:" {send "[lindex $argv 2]\n"} } in
相关文章
相关标签/搜索