0
0

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 1 year has passed since last update.

SSH をする時に"Permission denied (publickey)."が出た時のチェックポイント

Posted at

自分用備忘録です。
記憶力が悪いから年一くらいしかやらないと忘れる…

接続先の設定確認(Ubuntu)

/etc/ssh/sshd_config

  • PublickeyAuthentication yes

authorized_keysの場所

/home/USER_NAME/authorized_keys

/etc/ssh/authorized_keys

設定の反映

  • sudo systemctl restart ssh
  • /etc/init.d/ssh restart

凡ミス:x:

コピーした鍵ファイルの中身

ssh-rsa ~

-----BEGIN OPENSSH PRIVATE KEY-----


ミスに出会い次第更新していく予定~

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?