| Author |
Message |
Dietrich
Joined: 24 Jan 2006
Posts: 4
|
| Posted: Tue Jan 24, 2006 4: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. |
|
| Back to top |
|
anderiv
Joined: 27 Apr 2004
Posts: 130
|
| Posted: Tue Jan 24, 2006 5: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. |
|
| Back to top |
|
rjp
Joined: 15 Aug 2003
Posts: 102
|
| Posted: Wed Jan 25, 2006 11:08 am 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. |
|
| Back to top |
|
anderiv
Joined: 27 Apr 2004
Posts: 130
|
| Posted: Wed Jan 25, 2006 11:10 am 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 |
|
| Back to top |
|
sednet
Joined: 17 Mar 2004
Posts: 106
Location: Europe
|
| Posted: Wed Jan 25, 2006 4: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. |
|
| Back to top |
|
| |