mac 腳本ssh自動密碼登陸服務器,非公鑰

安裝工具web brew install expect brew install spawn-fcgi 登陸腳本, 替換ip與密碼bash #!/usr/bin/expect set user root set ipaddress 120.76.xx.xx set passwd xxx set timeout 30 spawn ssh $user@$ipaddress expect {
相關文章
相關標籤/搜索