SSH access problems

Post Reply
softfoot
Posts: 61
Joined: May 27th, 2015, 9:20 am

SSH access problems

Post by softfoot » December 2nd, 2018, 10:29 pm

I am trying to setup SSH access via KEYS.

I have created a new public key, and copied it to ~/.ssh/authorized_keys

But no matter what I do on the client (Mobxterm) end I always get the error:

Server refused our key
Disconnected: No supported authentication methods available (server sent: publickey,keyboard-interactive)

What is this newbie missing ???

BTW - If I set SSH to "password" it connects OK - so it is running and accepting connections OK.

TIA
Dave

User avatar
Arne.F
Core Developer
Core Developer
Posts: 7977
Joined: May 7th, 2006, 8:57 am
Location: BS <-> NDH
Contact:

Re: SSH access problems

Post by Arne.F » December 3rd, 2018, 7:47 am

Have you enabled key usage in the webif?
Arne

Support the project on the IPFire whishlist!

Image

Image

Image
PS: I will not answer support questions via email and ignore IPFire related messages on my non IPFire.org mail addresses.

softfoot
Posts: 61
Joined: May 27th, 2015, 9:20 am

Re: SSH access problems

Post by softfoot » December 3rd, 2018, 9:31 am

If by the Webif you mean on the "System->SSH Access" page - then "Yes"
Dave

cfusco
Posts: 72
Joined: March 23rd, 2015, 4:19 pm

Re: SSH access problems

Post by cfusco » December 7th, 2018, 10:00 pm

Be careful that copying and paste might introduce invisible characters and ruin the key. The way I have done it: I have create a user (so, no root) and put an ssh key to this user by using ssh-copy-id (ssh-copy-id avoids the invisible character problem), then after the log in I sudo to root. Did you read this page?
Image

softfoot
Posts: 61
Joined: May 27th, 2015, 9:20 am

Re: SSH access problems

Post by softfoot » December 7th, 2018, 10:33 pm

I had read that pagge.

I cannot use ssh-copy-id since I am on a Windows platform with no linux support.

Moblxterm is able to generate the key files under windows and I then binary copy them to ~/.ssh/authorized_keys - so it should work.

But it doesnt :-(
Dave

softfoot
Posts: 61
Joined: May 27th, 2015, 9:20 am

Re: SSH access problems

Post by softfoot » December 7th, 2018, 10:44 pm

Ah!! The penny finally dropped and I fixed it :-)

My mistake was to copy the public key to a directory called "~/.ssh/authorized_keys" when the FILE should be called "authorized_keys" in ~/.ssh/

Duh
Thanks anyway
Dave

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests