Shell腳本實現自動登陸

#!/usr/bin/expect spawn ssh hdp34 expect "~" send "ambari-server sync-ldap --all\r" expect "*login:" send "admin\r" expect "*password:" send "admind2322\r" interact 注意上面若是在(ssh hdp34已實現免密登陸) spawn s
相關文章
相關標籤/搜索