SSH-Keygen : Still requires password on login

Hey All!

I'm new to Linode and true linux in general. I do tech support for a startup and thought I was a pretty smart dude.

Linode is destrooooyyiinng me.

To be fair, it's my fault. To be double fair I've run in this issue for the past 24 hours continuously over the past 24 hours and I don't know what I'm doing wrong.

I've looked at Linux stack Exchanges and other forums and I haven't found a fix.

Issue: I ssh User@ip.address, I am still requested for user password

Local Computer:

Macbook Pro

OS 10.8.5

Linode:

lsb_release -a:

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 12.04.3 LTS

Release: 12.04

Codename: precise

Following steps listed here : https://library.linode.com/securing-your-server

Steps I took ( I know it' sucks to pry these details out of people so I want to make sure I don't waste any of y'alls time :D

Did you add a user? Yes

Did you promote them to have sudo permisssion via "usermod -a -G sudo"? Yes

after this I apt-get update , apt-get upgrade to make sure I'm up to date.

Did you generate a key on your local computer yes

did you send the key through SCP to your user@ip ; ending with a colon and confirm it's reciept? Yes

Did you make a new directory ; .ssh ( in your home/usr folder) and from there make a new subdirectory called authorized_keys? Yes

Did you mv rsaid.pub to /.ssh/authorizedkeys

Did you move rsaid.pub? Yes ( however this is where it got kinda weird, I had to move it into ssh and then to authorizedkeys. said file/directory didn't exist. Then I got 'er done )

did you make the ownership and permission changes as described ? Yes sudo'd em all :

chown -R exampleuser:exampleuser .ssh

chmod 700 .ssh

chmod 600 .ssh/authorized_keys

Sooo that about wraps it up. I feel like I've tried everything but I know there's something I'm missing, most likely a permission modification that wasn't done right or something is up with the key itself in some regard.

Anyways, Thanks in advance for y'alls response

I'm having a blast ( and minor arthiritis) learning linode/linux and each paranod rebuild is helping get this stuff into my brain.

4 Replies

> Did you make a new directory ; .ssh ( in your home/usr folder) and from there make a new subdirectory called authorized_keys? Yes

authorizedkeys is a file not a subdirectory it should contain the contents of your idrsa.pub file.

Ah! Good to know. Let me remove both and try again from the instructions.

Missing part was sudoing the command ; since Obs is right, it's a file not a directory

Thanks obs!

w00t ! UP and running ! :D

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct