linux expect詳解(ssh自動登陸)

shell腳本實現ssh自動登陸遠程服務器示例:linux #!/usr/bin/expect spawn ssh root@192.168.22.194 expect "*password:" send "123\r" expect "*#" interact 原文連接:http://www.xuanhao360.com/linux-expects/web Expect是一個用來處理交互的命令。
相關文章
相關標籤/搜索