【SSH】ssh-copy-idを使うときにパスワードを引数で入力する Linux Posted by: 2022年2月8日 no comments yet <スポンサーリンク> sshpassというコマンドを使えばいける。 あと、-o StrictHostKeyChecking=noをつけると「Are you sure you want to continue connecting」が聞かれなくなるので、対話を挟まないようにできる。 sshpass -p "a" ssh-copy-id root@127.0.0.1 -p 20022 -o StrictHostKeyChecking=no <スポンサーリンク> older newer コメントを残す コメントをキャンセルAllowed tags: you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>Please note: all comments go through moderation. Name (required) Email (required) Website キャプチャコード * Δemail confirm* post date* 日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)