fix #522 兼容新版openssh批量推送密钥

pull/552/head
gjmzj 2019-04-29 22:32:24 +08:00
parent 400f2b31f7
commit c2c069987e
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ ssh_key_copy()
spawn ssh-copy-id $username@$1 spawn ssh-copy-id $username@$1
expect { expect {
\"yes/no\" { send \"yes\n\"; exp_continue; } \"yes/no\" { send \"yes\n\"; exp_continue; }
\"password\" { send \"$password\n\"; } \"*assword\" { send \"$password\n\"; }
\"already exist on the remote system\" { exit 1; } \"already exist on the remote system\" { exit 1; }
} }
expect eof expect eof