ssh expect 自動交互登錄ssh,執行svn 命令

1新建腳本文件ssh_expect.sh,內容以下php #!/usr/bin/expect spawn ssh admin@192.168.1.108 expect "*(yes/no)*" {    send "yes\r" } expect "*password:" {send "admin\r"} expect "*admin*" {send "cd work/php/test\r"} e
相關文章
相關標籤/搜索