*New 12.1 series Release:
2019-11-08: XigmaNAS 12.1.0.4.7091 - released!

*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Simple question re SSH login

Secure shell connections.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Avlor
NewUser
NewUser
Posts: 5
Joined: 24 Jun 2012 14:09
Status: Offline

Simple question re SSH login

#1

Post by Avlor » 26 Jan 2016 10:43

Hi All,

I've got a (what I think is) simple question about RSA based SSH login. Server is Nas4free 10.2 Embedded, client is OSX.

My understanding of how this works is as follows. My client has a pair of RSA keys, public and private. Private key is never shared and stays on the client. Public key can be shared and is used to authenticate the client. At the moment I have a key pair that I use for multiple services (GitHub, DigitalOcean, etc).

My expectation was that I would copy my public key from the client onto my NAS into an authorized_keys file. However, all the instructions related to SSH talk about generating a new key pair on the NAS, then taking the private key generated on the NAS and putting it in the authorized_keys on the client. Which doesn't make sense given what I know about SSH.

So the question is, how do I add my existing public key and use it to log in to my NAS? I was not able to find an option in the GUI to do that.

Thanks!

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2458
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: Simple question re SSH login

#2

Post by b0ssman » 26 Jan 2016 10:48

for login you need a the public key in authorized_keys with the correct permission.

nas4free needs a private key for the server identity.

see
http://www.zoonsweb.nl/wiki/doku.php?id ... on&s[]=ssh
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

Avlor
NewUser
NewUser
Posts: 5
Joined: 24 Jun 2012 14:09
Status: Offline

Re: Simple question re SSH login

#3

Post by Avlor » 26 Jan 2016 23:09

Looks like following these instructions, particularly step 6, will result in NAS private key overwriting my existing private key on the client. Which will then mess with my RSA-based logins elsewhere..

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2458
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: Simple question re SSH login

#4

Post by b0ssman » 27 Jan 2016 08:07

that guide assumes you dont have a private/public key already. obviously if you have make changes accordingly.
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

danmero
NewUser
NewUser
Posts: 8
Joined: 16 Feb 2016 04:23
Status: Offline

Re: Simple question re SSH login

#5

Post by danmero » 16 Feb 2016 05:31

Avlor wrote:Looks like following these instructions, particularly step 6, will result in NAS private key overwriting my existing private key on the client. Which will then mess with my RSA-based logins elsewhere..
The client use "the private key" ( can be RSA or DSA or both but not more that one each), ... the server hold "the public key" , can be a list of public keys , RSA or DSA alike, in authorized_keys files !! typo is very important.

I don't remember if you can set multiply public keys in FreeNAD(old)/Nas4Free WebGUI but you can do that from shell.

User avatar
Lee Sharp
Advanced User
Advanced User
Posts: 255
Joined: 13 May 2013 21:12
Contact:
Status: Offline

Re: Simple question re SSH login

#6

Post by Lee Sharp » 05 Apr 2016 04:22

Note that keys are stored in root that is new every boot, so if you need persistent root, you need a way for it to be so. Startup and shutdown scripts copying root to persistent storage and back help here.

Diggin.Weirdo
NewUser
NewUser
Posts: 5
Joined: 26 Jun 2016 10:47
Status: Offline

Re: Simple question re SSH login

#7

Post by Diggin.Weirdo » 02 Jul 2016 11:55

Having problems here too..i use winscp on windows 7, created key-pair with Puttygen, pasted private RSA key in the private key field on nas4free but i get an error (Error: The changes could not be applied (error code 1).). How do i get this to work? I wan to connect with Winscp from my windows 7 to my nas4free..

Diggin.Weirdo
NewUser
NewUser
Posts: 5
Joined: 26 Jun 2016 10:47
Status: Offline

Re: Simple question re SSH login

#8

Post by Diggin.Weirdo » 11 Jul 2016 21:43

An answer would be nice regarding the error..mods? Admins?

Post Reply

Return to “SSH”