LoginSignup
0
0

More than 5 years have passed since last update.

puttyでssh鍵を作って認証したい時の注意とknown_hostを簡単に消したい時

Last updated at Posted at 2018-09-26

ハマったのでメモ

Putty

PuttyGenで鍵を作る
サーバーに入る。

chmod 700 .ssh

WinSCPなどでサーバーに送った後以下のコマンドを実行

$ ssh-keygen -i -f hoge_pub.pub >> authorized_keys
$ chmod 600 authorized_keys

これで入れるはず。

known_hostの消し方

viとかで消すの面倒なので、

ssh-keygen -R host(ipとか)

これで消える

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