LoginSignup
4
1

More than 3 years have passed since last update.

ssh接続する際に、yes/noを尋ねられないようにする(can't be established)

Last updated at Posted at 2019-12-18

未知のホスト鍵の際に尋ねられる。

Are you sure you want to continue connecting (yes/no)?

自動化したいなどで聞かれたくない場合、オプションをつける(-oStrictHostKeyChecking=no)

ssh -l ユーザー名 -p ポート番号 -oStrictHostKeyChecking=no IPアドレス
パスワードを効かれたら入力する。

参考にさせていただいたサイト

https://www.turbolinux.co.jp/products/server/11s/user_guide/sshconnect.html
https://www.softel.co.jp/blogs/tech/archives/1414

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1