know_hosts登録の確認方法
1 |
$ ssh-keygen -F xxx.xxx.xxx.xxx |
1 2 3 4 |
# Host xxx.xxx.xxx.xxx found: line 5 type RSA xxx.xxx.xxx.xxx ssh-rsa AAA6OhgkZa0L6XDnmHE0NaBprr0VHhSjQ4bEtj j/hVXLSQqMBkigKGI7AbcgAB3NzaC1yc2EAAAADAQABAAABAQC2ytDRUlU4fZB 6OmcwJuhaiZElYEYcDy7p1/MR5wqRPhk5T34yQrVlsb2utNWRHRTwG50kbrAkK |
known_hosts登録からの削除方法
1 |
$ ssh-keygen -R xxx.xxx.xxx.xxx |
1 2 3 |
# Host xxx.xxx.xxx.xxx found: line 5 type RSA /Users/Ichiro/.ssh/known_hosts updated. Original contents retained as /Users/Ichiro/.ssh/known_hosts.old |