Active Topics

 


Reply
Thread Tools
Posts: 542 | Thanked: 117 times | Joined on Sep 2008 @ 52 N, 6 E
#1
When using SSH (e.g. Putty) and typing in "user" (builtin user name) as user name , the ssh client prompts for a password and just pressing Enter (as it has no password) denies access.
Has anybody a trick to access the n810 via SSH as user ?
As a root it works normally (with the proper password of course).
__________________
Nokia N810 FW version 5.2008.43-7
iPad 2 (iOS 4.3.2) Macbook Pro (10.6.6)
Nokia 5800 phone FW 62.0.0125
 
Posts: 4,030 | Thanked: 1,633 times | Joined on Jul 2007 @ nd usa
#2
 
Posts: 157 | Thanked: 96 times | Joined on Nov 2007 @ Oxford, UK
#3
Create yourself a private/public keypair and add the public key to .ssh/authorized_keys for user. Then you can login safely from any system which has the private key and nobody else can hack into your tablet.

You can also do the same for the user root so you can login but nobody else can.
 
Posts: 542 | Thanked: 117 times | Joined on Sep 2008 @ 52 N, 6 E
#4
How should I do that ? Are there examples ?
__________________
Nokia N810 FW version 5.2008.43-7
iPad 2 (iOS 4.3.2) Macbook Pro (10.6.6)
Nokia 5800 phone FW 62.0.0125
 
Posts: 40 | Thanked: 28 times | Joined on Feb 2008
#5
Originally Posted by skatebiker View Post
How should I do that ? Are there examples ?
http://www.internettablettalk.com/wi...scp_and_winscp
 
Posts: 42 | Thanked: 16 times | Joined on Oct 2007 @ Nottingham
#6
set a password for user with, as root: passwd user
enter the new password twice. then sort out sudoers and lock the password for the root account. the -l parameter to passwd unsets the password.

Getting sudoers wrong can cause very big access and boot problems, so be very careful. Stop here unless you are happy to reflash the device.

The best tool to edit the file with is visudo, it syntax checks the file before saving. The last rule applies, so add this rule near the top of /etc/sudoers
user ALL = PASSWD: ALL
which means I can run all commands as root, but will be challenged for my own password.

My added rule is after Defaults, but before other similar looking rules.

Make sure the sudoers change works before destroying the root password.
If the order of rules in the file is wrong, eg, adding the new rule at the end, it seems to break the boot process, possibly it it challenging for the user password but just hangs.

With sudoers working, as user, lock the root acccount:
sudo passwd -l root
it's still possible to "sudo su - root", but not to ssh remotely directly to root.

Last edited by ptaffs; 2008-12-05 at 17:36. Reason: added instructions for sudoers and locking password.
 

The Following User Says Thank You to ptaffs For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#7
I just ssh in as root and then run "su - user". Not the most secure of solutions as it requires you to log in with the root user first.
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:56.