SSH Error: Permission denied (publickey)

Error

$ ssh rajesh@192.168.59.1
rajesh@192.168.59.1: Permission denied (publickey).

Solution

You need to enable the Password based authentication and restart sshd services

$ vi /etc/ssh/sshd_config

$ sudo service ssh restart

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x