![]() |
SSH and root access
Got SSH installed OK, one post said input..
"SSH -1 root@localhost" to gain root access, but I tried and got this. "Protocol major versions differ: 1 vs. 2" I installed the proper version of SSH (At least I think) from Maemo downloads for OS2008! Please what amd I doing wrong.... N800 and OS2008.... Darren Thanks in advance |
Re: SSH and root access
Why the "-1" ?
ssh root@localhost You can also use becomeroot to gain root access. |
Re: SSH and root access
My 1st post using my n800.
What ssh client are yiu using to ssh into the device? Make sure you set the client to use ssh2 only. |
Re: SSH and root access
Quote:
Line Quote:
If this line doesn't exist, v2 will be used and if the client does not understand v1, it will switch to the _insecure_ v1. |
Re: SSH and root access
Quote:
Thanks again everyone for quick replies.... |
Re: SSH and root access
This is exactly what you *shouldn't* type. (in your case it's localhost fine but I thought it's worth mentionning)
There are a lot of tools to relay, record traffic, capture password, and manipulate interact sessions for ssh v1. If you add on top of this that you ssh to root then it's heaven for crackers. These tools have even been ported to nokia devices.. |
Re: SSH and root access
Thanks Man! Saved a noob again...:-)
|
Re: SSH and root access
Quote:
There are actually two variants of the command that you should be using and they achieve the same thing: Code:
ssh -l <user> <host>Code:
ssh <user>@<host> |
Re: SSH and root access
Will I create new problems if I add a password to the user account?
I would rather be able to get into my 810 from anywhere, w/out doing the certificate management dance first. |
Re: SSH and root access
No it won't create a problem to put a password for user.
And if you don't like the dance, there is a usefull linux script ssh-copy-id PHP Code:
ssh user@n800 enter the password And that's it, it won't ever ask you for a password anymore. For this you will need an ssh-agent (started by common session manager like kdm, gdm) And enter once the passphrase for your keyring using ssh-add. On the client, to create your keyring in .ssh/ (only needed once) ssh-keygen |
Re: SSH and root access
Quote:
The most secure option is to use public/private key authentication for the user account (as described in the thread I linked earlier) and disable logins on the root account (you can still sudo to root from the user account). |
Re: SSH and root access
^
| | Paranoiac ;p edit: After you've used ssh-copy-id, you can then remove the password of user Do this as root: usermod -L user Lazy way of transfering keys.. |
Re: SSH and root access
Sorry, a bit of a noob, but wondering about why a user password weakens everything, and where would you even use it since there isn't a GDM or anything like that (which btw would be pretty nice). Also, if you change your root password and then disable root login, will it ask for a password when you sudo gainroot? Thanks a lot, I appreciate it.
|
Re: SSH and root access
Quote:
Also if you are not typing in a password, neither someone looking over your shoulder nor a keylogger running on your system or attached to a keyboard cable or sniffing bluethooth signals will allow an attacker to gain access. So whether you set this up depends on your degree of security required but it is a pretty good trade-off between more security and ease of logins down the road vs. a little bit of up-front pain in getting it all configured right. |
| All times are GMT. The time now is 14:48. |
vBulletin® Version 3.8.8