So I set up passwordless ssh using the following: How can I set up password-less SSH login?
After setting this up, I'd expect that I wouldn't need a password to ssh. My issue is that on my first connection to ssh, it will ask me for a password, but additional sessions on top of that will not ask for a password.
I've already checked my sshd_config to make sure that it contains:
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys
Pretty sure my permissions are right, because if they weren't then passwordless ssh wouldn't be working at all.
To add more "fun" to this problem, I noticed that when I restart my computer (either the client computer or the ssh server computer), sometimes it will work. Then when I shut down the computer and try it again the next day, it doesn't work anymore. Maybe this is completely random, but it's something I've noticed.
ssh-copy-id -i ~/.ssh/id_rsa.pub <remote-host-ip>
afterssh-keygen
? – d a i s y Jan 21 '16 at 09:01