LoginSignup
4
5

More than 5 years have passed since last update.

Are you sure you want to continue connecting (yes/no)? を黙らせるかた

Posted at

ssh ログインする時によく出るAre you sure you want to continue connecting (yes/no)?はセキュリティーに関わるが、今はしばしば面倒と感ずる。どう消せば…

SSHコマンドに直接に-o StrictHostKeyChecking=noを入れて、これを回避できるという。

ssh -o StrictHostKeyChecking=no root@192.168.1.1

また、システムレベルには、/etc/ssh/ssh_configを編集し、StrictHostKeyCheckingをデフォルトのaskからnoに改定すれば、全滅は可能。

他には、-vvvなどをsshコマンドに添付して見て、どこが問題があるが見つかる。

4
5
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
5