Ssh passwordless login for Connect IT? (public key)

There is a topic regarding the ssh public key for user access with ConnectPort but it didn’t help.

I have a Connect IT 4 and I would like to ssh in remotely. Putty kept saying the server refused our key.

I am sure the private key and public key are correct and tried to copy to web and cli.

Any help?

@Fire , thanks for your web forum post.

Here is a link to where you’ll find this guidance within the Connect IT 4 User Guide (a model which uses a different OS than the ConnectPort, therefore configured differently):

https://www.digi.com/resources/documentation/digidocs/90002355/default.htm#os/services-ssh-key-auth-t.htm

Does that work for you?

Fix:

I was using puttygen to generate the keypair. The public key file generated by puttygen started with the following text:

---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20xxxxxx"
[public key content]
---- END SSH2 PUBLIC KEY ----

As I copy the whole text as ssh key, it won’t work.

The correct format which generate under linux is:

ssh-rsa [public key content]

Although, the private key file needs to be convert to putty format before putty can accept it.

Modify the ssh content from puttygen also works, just remove all the header/footer other than public key, add ssh-rsa in the front. save the ssh key and you are good to go.

Maybe Digi can add this into new firmware automatically extract the key into the system. Or just put note there, copy public key content only.

Anyway, hope that helps other people.