maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   ssh-ing into N900 as user (https://talk.maemo.org/showthread.php?t=50261)

joschum 2010-04-17 07:20

ssh-ing into N900 as user
 
Hi,

to establish a connection to the N900 from my laptop I configured usb-networking as described here:

http://wiki.maemo.org/N900_USB_Networking

ssh root@N900 works fine.

To make
ssh user@N900
working I had to unlock the user-account with
usermod -U user

Is this a security risk?

lma 2010-04-17 08:56

Re: ssh-ing into N900 as user
 
Quote:

Originally Posted by joschum (Post 614427)
Is this a security risk?

Remote root logins are already allowed, so no (unless your user password is really weak).

michaaa62 2010-04-17 08:56

Re: ssh-ing into N900 as user
 
Yes it is, but only for the user account. But every little security hole in an application might widen that gap a little.
Why didn't you just give user a password?
As root:
Code:

passwd user

zimon 2010-04-17 09:08

Re: ssh-ing into N900 as user
 
It is almost as (un)safe if one just ssh in as root.
You have probably gainroot installed, so getting user access means root access also.
Actually having two passwords which either one leads to root access is less secure than having only one.

trbs 2010-08-05 20:21

Re: ssh-ing into N900 as user
 
Using a plain password on a Maemo device is vulnerable.

It does not use shadow password files and the default crypto is a very weak Traditional DES encryption which is very easy to break. Since passwords are limited to max 8 characters it also does not matter how large or 'strong' you make your passwords.

/etc/passwd is readable for everybody, so basically anyone that can get a hold of your device for 5 mins can email/copy the passwd file and use a bruteforce cracker to find your passwords in a matter of hours.

The only thing that I could recommend is keeping your /etc/passwd file empty (aka do not use passwd) and instead copy your ssh public key to the device and use that for logging in remotely.

p.s. sorry for bumping this thread... forum uses MM-DD-YYYY which is extremely confusion....

j.s 2010-08-05 20:43

Re: ssh-ing into N900 as user
 
Quote:

Originally Posted by trbs (Post 777001)
p.s. sorry for bumping this thread... forum uses MM-DD-YYYY which is extremely confusion....

Actually, it uses MM-DD-YY (two digit year) which is even more than extremely confusing. The only date order unambiguous world wide is YYYY-MM-DD

kureyon 2010-08-06 04:57

Re: ssh-ing into N900 as user
 
You can change the date display format your control panel settings.

j.s 2010-08-07 00:20

Re: ssh-ing into N900 as user
 
Quote:

Originally Posted by kureyon (Post 777366)
You can change the date display format your control panel settings.

Thank you, but I do not see any option that provides ISO 8601 date order, which besides being an international standard, is the only date order that sorts sensibly, and the only order that is unambiguous worldwide, because, as far as I know, no one uses YYYY-DD-MM

linuxeventually 2010-08-07 01:59

Re: ssh-ing into N900 as user
 
It's not ideal but if you need to run something as user:
Code:

[someuser@desktop:~]$ ssh root@<NokiaIP>
[root@N**0:~]# su - user
[user@N**0:~]


theonelaw 2010-08-08 07:44

Re: ssh-ing into N900 as user
 
Quote:

Originally Posted by j.s (Post 778403)
Thank you, but I do not see any option that provides ISO 8601 date order, which besides being an international standard, is the only date order that sorts sensibly, and the only order that is unambiguous worldwide, because, as far as I know, no one uses YYYY-DD-MM

I use it.
The people I work with use it.:)

But not on the n900.:mad:

Nokia deliberately left this out of the n900.:confused:

If you do manage to get ISO8601 working in a hack,
it will brick your device permanently.:eek:

j.s 2010-08-08 15:42

Re: ssh-ing into N900 as user
 
Quote:

Originally Posted by theonelaw (Post 779291)
I use it.
The people I work with use it.:)

You use yyyy-DD-mm ????
Why ????

Quote:

Originally Posted by theonelaw (Post 779291)
But not on the n900.:mad:

Nokia deliberately left this out of the n900.:confused:

If you do manage to get ISO8601 working in a hack,
it will brick your device permanently.:eek:

Please elaborate!

kureyon 2010-08-08 17:26

Re: ssh-ing into N900 as user
 
trbs found the date format in this forum confusing, I said you can change the format (to European instead of the illogical American format) using the control panel of this forum (not your N900!)

j.s 2010-08-08 20:11

Re: ssh-ing into N900 as user
 
Quote:

Originally Posted by kureyon (Post 779662)
trbs found the date format in this forum confusing, I said you can change the format (to European instead of the illogical American format) using the control panel of this forum (not your N900!)

The European date format is also confusing with the 2 digit year, but the Expanded European date format is also available for the forum. I selected that, since the best date format, ISO 8601, is not available.

Just as the date format on this forum is topic drift from ssh into N900 as user, the topic drifted to lack ISO 8601 date format on the N900.

Please provide some context in your replies.


All times are GMT. The time now is 20:33.

vBulletin® Version 3.8.8