New(ish) to SSH-- checking some public key details...

Trying to set up a Stackscript and failing at it even though I've tried numerous combinations. The rsa handshake seems to work as I get the "yes/no" question upon 1st connection. Am I correct that the user key i.e. used in the field below is just the code copied from the id_rsa.pub file just after "ssh-rsa" to the characters before "== Fedora Main Box"? I seemed to have no trouble when I installed the VPS manually from the CLI. But of course in that case I was simply scp'ing a pub file. I have ssh set up to restart after turning off root login and changing pubkeyauthentication to "Yes".

TIA, V.

3 Replies

Surely you need the whole public key line including the 'ssh-rsa' part. SSH will not know what key type it is otherwise.

And the = characters at end too when you have them, it's base64 padding. Everything until the whitespace.

thanks, up and running. now on to automated setup of a Nginx virtual host, SSL and password protecting a private dir. Thanks gang

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