root access directly with ssh
thanks again.
4 Replies
$ ssh root@aaa.bbb.ccc.ddd
Where aaa.bbb.ccc.ddd is the IP address of your linode.
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.
@rjp:
I use:
ssh -l username hostname
for a direct login under a different user ID.
That's exactly the same thing as doing:
$ ssh username@hostname
@Dietrich:
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
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@