Git Ssh
Hello guys,
I have generated new keys, i have added the public key to the ssh server, and when i try to login via ssh it says
Permission denied (publickey).
How could I solve this?
What does this have to do with git?
@Snapey how can I solve this? I need to pull on a git repository
go to the user's home folder and cd .ssh
Add your public key to the authorized_keys file
Make sure the file is owned by the user and that the permissions are 600.
eg, if your user is kris
chown -R kris:kris /home/kris/.ssh
chmod 0700 /home/kris/.ssh
chmod 0600 /home/kris/.ssh/authorized_keys
@Snapey ok so what I am doing is:
ssh root@ipaddress
and I am getting
Permission denied (publickey).
I didn't find any authorized_key file, so I created one manually and added the .pub key inside but still nothing
@Kris01 authorized_keys not key.
How are you connected now?
@Snapey yes, authorized_keys but still nothing. I'm on windows by th way
Just to be clear
You are trying to log into your server with SSH
or
You are already logged in to your server and you are trying to pull from some cloud provider
Are you using bitbucket ?
Please or to participate in this conversation.