Hi all,
I've been struggling with ssh passwordless login for several days and searched Internet for countless posts but none of them worked, I'm trying to get some help here and hope that I can make it work.
This is what I've done:
I've been struggling with ssh passwordless login for several days and searched Internet for countless posts but none of them worked, I'm trying to get some help here and hope that I can make it work.
This is what I've done:
- enabled SSH service and enabled password authentication in SSH config GUI page, since I don't want to disable password authentication for all users.
- created RSA key pairs with "ssh-keygen -t rsa" on my mac.
- created a new user (userA), setup the the home folder with permission 755 (all parent folders are with permission 755), disabled password login for userA, and pasted the public key contents in "SSH Public key" field.
- checked that the contents of file "authorized_keys" in folder /mnt/home/userA/.ssh/ is the same as the public key file.
- on my mac I run this command "ssh -i /path/to/key/id_rsa userA@freenas", type yes, and it asks me for a password - which I don't have.