RaspbianでSSHができない時の対処法
問題点
rasp-configでSSHを有効にし、クライアントからアクセスしようとすると
pi@192.168.2.XXX: Permission denied (publickey).
と表示され接続できない。
環境
Debian Buster with Raspberry Pi Desktop
変更前 # To disable tunneled clear text passwords, change to no here! PasswordAuthentication no #PermitEmptyPasswords no
となっているところのPasswordAuthentication
をno
からyes
に変更する。
変更後 # To disable tunneled clear text passwords, change to no here! PasswordAuthentication yes #PermitEmptyPasswords no
変更後ファイルを保存したら再起動する。
PasswordAuthenticationとは
パスワード認証を有効にする設定
no
の場合は無効
yes
の場合は有効