iterm2 SSH免密碼遠程鏈接服務器

在/usr/local/bin目錄下新建iterm2login.sh文件,內容以下:web #!/usr/bin/expect set timeout 30 spawn ssh -p [lindex $argv 0] [lindex $argv 1]@[lindex $argv 2] expect { "(yes/no)?" {send "yes\n";exp_c
相關文章
相關標籤/搜索