How to fix SSH permission denied Publickey?

If you are able to log in with the root account, then it is possible that the user did not make the ssh key. To create a new ssh key and grant permissions. Type this into your console; $ ssh-keygen -t RSA and follow the prompts. In the next step, you need to check whether your application database exists or not. If it does exist then pick the checkbox to allow database creation and uncheck check ddl auto-generation if any.

permission denied (publickey) ssh ubuntu

on Jan 01, 1970
sudo nano /etc/ssh/sshd_config
PermitRootLogin prohibit-password to PermitRootLogin yes 
PasswordAuthentication no to PasswordAuthentication yes

Add Comment

0

scp permission denied (publickey) but ssh works

on Jan 01, 1970
 scp -i ~/.ssh/my-private-key.pem file.txt [email protected]:/home/bitnami/

Add Comment

0

permission denied (publickey)

on Jan 01, 1970
ssh-keygen -t rsa -b 4096 -C “[email protected]

Add Comment

0

Check whether or not you have public and private key RSA files. They should be in the ~/.ssh directory.

Shell/Bash answers related to "Ssh permission denied publickey"

View All Shell/Bash queries

Shell/Bash queries related to "Ssh permission denied publickey"

Browse Other Code Languages

CodeProZone