From c2c069987e3e072146871e5a1c382e8b13a3334e Mon Sep 17 00:00:00 2001 From: gjmzj Date: Mon, 29 Apr 2019 22:32:24 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#522=20=E5=85=BC=E5=AE=B9=E6=96=B0?= =?UTF-8?q?=E7=89=88openssh=E6=89=B9=E9=87=8F=E6=8E=A8=E9=80=81=E5=AF=86?= =?UTF-8?q?=E9=92=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/yc-ssh-key-copy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/yc-ssh-key-copy.sh b/tools/yc-ssh-key-copy.sh index af3ee47..a400e6f 100755 --- a/tools/yc-ssh-key-copy.sh +++ b/tools/yc-ssh-key-copy.sh @@ -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