Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jan 24, 2006 5:04 pm 
Offline
Newbie

Joined: Tue Jan 24, 2006 2:57 pm
Posts: 4
one more question please, is there a way to ssh with root directly to my linode?

thanks again.


Top
   
 Post subject:
PostPosted: Tue Jan 24, 2006 6:34 pm 
Offline
Senior Member

Joined: Tue Apr 27, 2004 5:10 pm
Posts: 212
Obvious security concerns aside, there's nothing preventing you from setting "PermitRootLogin yes" in your sshd_config file and doing:
Code:
$ ssh root@aaa.bbb.ccc.ddd

Where aaa.bbb.ccc.ddd is the IP address of your linode.


Top
   
 Post subject:
PostPosted: Wed Jan 25, 2006 12:08 pm 
Offline
Senior Member
User avatar

Joined: Fri Aug 15, 2003 2:15 pm
Posts: 111
Website: http://fubegra.net/
I use:

ssh -l username hostname

for a direct login under a different user ID.

That being said, I would very strongly advise you to use only public-key authentication, especially if you're going to allow root logins. It's really a good idea even if you aren't, since if a password bruteforcer manages to find a working login/password combo, the kiddie running the script could log in and use a local root exploit against your system.

_________________
Bus error (passengers dumped)


Top
   
 Post subject:
PostPosted: Wed Jan 25, 2006 12:10 pm 
Offline
Senior Member

Joined: Tue Apr 27, 2004 5:10 pm
Posts: 212
rjp wrote:
I use:

ssh -l username hostname

for a direct login under a different user ID.


That's exactly the same thing as doing:
Code:
$ ssh username@hostname


Top
   
PostPosted: Wed Jan 25, 2006 5:58 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
Dietrich wrote:
one more question please, is there a way to ssh with root directly to my linode?

thanks again.


As has been already said keypairs are much safer than passwords for this.
I'm sure I'm not alone in getting constant password guessing attempts on my linode.

The really quick guide to setting up passwordless root login to your linode:

on your home machine as your user do:
ssh-keygen -t rsa -b 1024
<follow prompts - default everything>
scp ~/.ssh/id_rsa.pub to <your linode>:~root/.ssh/authorized_keys

on your linode:
set/check 'PermitRootLogin yes' is set in /etc/ssh/sshd_config.
optional - set 'PasswordAuthentication no' to stop password logins.
If you change the file restart sshd.

You should be able to get in with ssh root@<your linode> without a password.


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


Who is online

Users browsing this forum: No registered users and 1 guest


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