Linode Forum
https://forum.linode.com/

root access directly with ssh
https://forum.linode.com/viewtopic.php?f=19&t=2064
Page 1 of 1

Author:  Dietrich [ Tue Jan 24, 2006 5:04 pm ]
Post subject:  root access directly with ssh

one more question please, is there a way to ssh with root directly to my linode?

thanks again.

Author:  anderiv [ Tue Jan 24, 2006 6:34 pm ]
Post subject: 

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.

Author:  rjp [ Wed Jan 25, 2006 12:08 pm ]
Post subject: 

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.

Author:  anderiv [ Wed Jan 25, 2006 12:10 pm ]
Post subject: 

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

Author:  sednet [ Wed Jan 25, 2006 5:58 pm ]
Post subject:  Re: root access directly with ssh

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.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/