Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

How to setup SSH with Public Key for windows clients using PuTTY on FreeNAS 9.3

Western Digital Drives - The Preferred Drives of FreeNAS and TrueNAS CORE
Status
Not open for further replies.

AaronZac

Junior Member
Joined
Jan 2, 2016
Messages
12
Is owncloud not secure enough for you? You would have your login and password.
Thanks for your message obi wan! I'm so bad at Tech stuff. I'll look into setting this up. Do you recommend it over keyed FTP?
 
Last edited:

AaronZac

Junior Member
Joined
Jan 2, 2016
Messages
12
Is owncloud not secure enough for you? You would have your login and password.
Thanks obi wan! Is this easy enough to set-up? I am not a techy coder kinda guy? Can I set it up without using the shell?
 

Raiz

Member
Joined
Nov 26, 2015
Messages
77
Owncloud is free. I think I did everything through the GUI. After you install a few plugins, you start to get the flow of how to set them up. I had tried to do it via the shell method and failed, so I went with the plugin.
 

Ericloewe

Not-very-passive-but-aggressive
Moderator
Joined
Feb 15, 2014
Messages
17,019
FTP should never be used over the internet for important/private data
Tell that to the professor who posts course materials, GNSS SBAS test data and family pictures on the same FTP server. No authentication, not that it'd make much of a difference.
 

AaronZac

Junior Member
Joined
Jan 2, 2016
Messages
12
Owncloud is free. I think I did everything through the GUI. After you install a few plugins, you start to get the flow of how to set them up. I had tried to do it via the shell method and failed, so I went with the plugin.
Cheers Raiz I'll give it a bash. Def not trying Keyed FTP now after the above chat.

Thanks guys.
 

moosekaka

Junior Member
Joined
Feb 15, 2016
Messages
12
(I am using v 9.2.1.9) -- THANK YOU so much for this guide, I was trying to set up SSH to login to shell on my Window 7 client, and most help that I could find on google was for setting up ssh with macs or linux, not PUTTY or PUTTYGEN. In my case I was confused about whether I could paste multiple public keys to the root users profile in the Webgui and this guide made everything clear!
 

Estropelic

Member
Joined
Feb 8, 2016
Messages
102
All along I thought I had to remove the RSA first comments from the key but apparantly not. Theres goes a few hours of my life I cant get back. Thanks for the write up.
 

trigate

Neophyte
Joined
May 5, 2016
Messages
8
Are you sure that this command:
Code:
ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub


should give you the fingerprint?
 

Graham Comber

Neophyte
Joined
Aug 3, 2013
Messages
4
Fast one step Putty login by specifying private key location and passphrase on command line or Windoze shortcut.
For those lazy folk like me wanting a single click logon to a FreeNAS machine using SSH keypairs and optional passphrase the following command line format (or target text for a windows shortcut) works a treat.
"C:\Program Files (x86)\PuTTY\putty.exe" -ssh accountname@I.P.Addre.ss sshport -i c:\SSH_Keys\freenas-privatekey.ppk -pw yourpassphrase
Where
"C:\Program Files (x86)\PuTTY\putty.exe" is the filespec for the location of the putty executable
-ssh is the putty switch denoting a SSH connection
accountname@I.P.Adre.ss is the user name and server address - ie root@1.2.3.4 or freenasadmin@9.8.7.6 or whatever
sshport is the port used to pass the SSH protocol on the server or access router (leave blank for the default ssh port (22)
-i is the Putty switch to specify the private key location and name for key pair authentication
-pw is the Putty switch to define a password or passphrase or other text string to pass to the server after ssh connection
yourpassphrase is the passphrase defined during the private key generation which is passed after initial ssh connection

Note 1 - All of the above fields must be separated by a space
Note 2 - quotations are necessary in most cases where spaces or control characters are used"
Note 3 - -pw yourpassphrase can be omitted if a passphrase is not being used (however a passphrase is recommended just in case someone gets hold of your private key.

Personally I found the above tutorial by the writer (carmorales) extremely helpful, very concise and it worked right out of the box.
I hope this contribution is also helpful to those using Putty / Key pair authentication login.
 
Status
Not open for further replies.
Top