diedrichg
Wizard
- Joined
- Dec 4, 2012
- Messages
- 1,319
I've watched videos. I've copied instructions verbatim. I've read this forum inside-out but I still can't get private/public keys to work!! I'm so frustrated I can't see straight.
Here's what I'm doing. WTF am I doing wrong?!
Here's what I'm doing. WTF am I doing wrong?!
- In my Linux terminal:
- #ssh-keygen -t rsa
- I press enter to not rename the file
- I enter a password
- I go to my Linux home folder, get inside the .ssh folder, double-click the id_rsa.pub file and copy all the text inside.
- Next I go to my FreeNAS GUI within my web browser
- I click my user from the left pane
- In the pop-up window I paste my ssh text (from the id_rsa.pub file) into the SSH Public Key section. I press OK
- Still in the GUI I open a Shell window
- The shell window shows [root@freenas ~]#
- I then chmod 600 /mnt/guenther/diedrich/.ssh/authorized_keys
- Back in my Linux terminal I
- ssh diedrich@freenasIP
- and I get Permission denied (publickey).
- scp ~/.ssh/id_rsa.pub diedrich@freenasIP:
- cat ~/.ssh/id_rsa.pub | ssh diedrich@freenasIP "cat >> ~/.ssh/authorized_keys"
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
- I've also tried placing the pub info in the authorized_keys file at /mnt/guenther/.ssh
- etc, etc, etc