I successfully added a rsa key my root account. since I don't want everything in my root acc, I created a new user. but for some how, I keep getting "server refuses our keys" message :S
I did following command with my root acc:
adduser kossel usermod -a -G sudo kossel groups kossel mkdir /home/kossel/.ssh vi /home/kossel/.ssh/authorized_keys //I pasted the key in this format "ssh-rsa xxxxxxxxxxxxxx==" for putty openSSH compatibility reason chown -R kossel:kossel /home/kossel/.ssh chmod 700 /home/kossel/.ssh chmod 600 /home/kossel/.ssh/authorized_keys
am I missing something?
update: answering comments: I have successfully done modifying the puttygen public key to suit openSSH, because my root acc is working.
I checked /var/log/auth.log the only message i got is:
Sep 12 15:59:40 9port sshd: pam_unix(sshd:session): session closed for user kossel Sep 12 15:59:52 9port sshd: reverse mapping checking getaddrinfo for dsl-xxx-xxx-xxx-xxx-dyn.prod-ISPDOMAIN.com [my_ip_address] failed - POSSIBLE BREAK-IN ATTEMPT!
ps: and I also got some spam user already trying to login?? sorry I just started to use vps yesterday.