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
|
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
|
||||||
|
|
Loading…
Reference in New Issue