Linux expect ssh自動登陸

安裝expect命令:web yum install expect -y 建立exp腳本,注意首行爲 #!/usr/bin/expect,並修改權限爲750bash touch ssh.exp chmod 750 ssh.exp 拷貝如下內容到ssh.exp文件ssh #!/usr/bin/expect #參數校驗 if { $argc != 3 } { send_user "usage
相關文章
相關標籤/搜索