0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

sshコマンドで接続確認の質問に常にyesで答える

Last updated at Posted at 2019-09-08
$ ssh -T git@github.com
The authenticity of host 'github.com (XX.XX.XX.XX)' can't be established.
RSA key fingerprint is SHA256:XXXXXXXXXXXXXXX...XXXXXXX.
Are you sure you want to continue connecting (yes/no/[fingerprint])? 

こんな感じの質問を受けたくないときがあるので、勝手に許可してくれるようにしたいです。

以下のように-o "StrictHostKeyChecking no"オプションをつけます。

$ ssh -o "StrictHostKeyChecking no" -T git@github.com
Warning: Permanently added 'github.com,XX.XX.XX.XX' (RSA) to the list of known hosts.
Hi USERNAME! You've successfully authenticated, but GitHub does not provide shell access.

自動で動いてほしいスクリプトの中などで使うと便利です。

0
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?