Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Nov 20, 2011 7:21 am 
Offline
Newbie
User avatar

Joined: Fri Nov 18, 2011 9:12 am
Posts: 3
So 2 days later after googling and compiling a number of different articles together until I can make any sense of it all I have managed to generate a key and copy it to the .ssh/authorized keys file.

So I logged out of putty, that's the console/client I am using and it asks for a login. Do I still log in as root with my new passphrase? or have a missed a step ?

_________________
I am new, real new, with no technical ability at all. everything reads like chinese and what should have taken 5 mins takes me a day


Top
   
 Post subject:
PostPosted: Sun Nov 20, 2011 2:03 pm 
Offline
Senior Member

Joined: Tue Aug 02, 2011 2:45 pm
Posts: 55
When you generated the key using PuttyGen you have to save the private key somewhere and then specify the filename in the connection setup of putty under SSH -> Auth (don't forget to save the connection details). Then it should work. You said you already copied the public key to the server.

The only thing you'll be asked for at login is the password you specified for the private key if you set one. You'll be logged in as the user that has the public key in their .ssh/authorized_keys file.


Top
   
 Post subject:
PostPosted: Sun Nov 20, 2011 11:53 pm 
Offline
Senior Newbie

Joined: Tue Sep 22, 2009 11:54 pm
Posts: 6
Under windows you can also use pagent to cache keys and that has to be allowed in that sessions configuration. Very handy though.


Top
   
 Post subject:
PostPosted: Mon Nov 21, 2011 3:33 pm 
Offline
Newbie
User avatar

Joined: Fri Nov 18, 2011 9:12 am
Posts: 3
The Other Air Force wrote:
When you generated the key using PuttyGen you have to save the private key somewhere and then specify the filename in the connection setup of putty under SSH -> Auth (don't forget to save the connection details). Then it should work. You said you already copied the public key to the server.

The only thing you'll be asked for at login is the password you specified for the private key if you set one. You'll be logged in as the user that has the public key in their .ssh/authorized_keys file.




That's what I did, only when I go into Putty, I have to put in a login. I go in as root and then I am asked for the passphrase which I put in. i do get connected but I thought the whole point was not to log in as root

_________________
I am new, real new, with no technical ability at all. everything reads like chinese and what should have taken 5 mins takes me a day


Top
   
 Post subject:
PostPosted: Mon Nov 21, 2011 3:50 pm 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
You can disable root log ins completely by editing your '/etc/ssh/ssd_config' and finding the "PermitRootLogin" option and set it to "no":

Code:
PermitRootLogin no


Or, you could set root logins to only work if you connect via SSH using an SSH pubkey:

Code:
PermitRootLogin without-password


After making this change restart SSH:

Code:
/etc/init.d/ssh restart


-Tim


Top
   
 Post subject:
PostPosted: Wed Nov 23, 2011 7:49 am 
Offline
Newbie
User avatar

Joined: Fri Nov 18, 2011 9:12 am
Posts: 3
Thanks theckman. i will a do little more research into disable root logins and decide upon which is better

_________________
I am new, real new, with no technical ability at all. everything reads like chinese and what should have taken 5 mins takes me a day


Top
   
 Post subject:
PostPosted: Thu Nov 24, 2011 8:23 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
That avatar looks like some kind of creepy inflatable sex toy.

James


Top
   
 Post subject:
PostPosted: Thu Nov 24, 2011 9:38 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
I don't know how, but I distinctly heard the sound of a needle skidding off of a record when I read that.


Top
   
 Post subject:
PostPosted: Thu Nov 24, 2011 11:10 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
hoopycat wrote:
I don't know how, but I distinctly heard the sound of a needle skidding off of a record when I read that.


Oh, don't pretend you weren't thinking the same thing...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group