mirror of https://github.com/easzlab/kubeasz.git
fix #522 兼容新版openssh批量推送密钥
parent
400f2b31f7
commit
c2c069987e
|
@ -47,7 +47,7 @@ ssh_key_copy()
|
|||
spawn ssh-copy-id $username@$1
|
||||
expect {
|
||||
\"yes/no\" { send \"yes\n\"; exp_continue; }
|
||||
\"password\" { send \"$password\n\"; }
|
||||
\"*assword\" { send \"$password\n\"; }
|
||||
\"already exist on the remote system\" { exit 1; }
|
||||
}
|
||||
expect eof
|
||||
|
|
Loading…
Reference in New Issue