I'm on a Ubuntu server. I'm trying to enable an ssh tunnel in order to add a git remote in a project of mine.
- On my local win7 machine I generated the key pair with PuTTYgen.
- I pasted the public key in
authorized_keys
file - I set the private PuTTY ppk filepath into putty Auth config
When I try to open a remote shell I get the error Server refused our key
.
Checking the log: Connection closed by <ip> [preauth]
in /var/log/auth.log
.
More infos:
~/.ssh/authorized-keys
have permissions 664.
The file is named authorized-keys
not authorized_keys
could this be a problem?
What am I missing?