Active Topics

 


Reply
Thread Tools
Posts: 44 | Thanked: 9 times | Joined on Dec 2012
#1
Ok, I went to connect my N900 to my PC through openssh and when I open WinSCP I enter my user name 'user' and then it asks for password. I have not set a password and tried the default passwords but all are wrong passwords. Also on a different matter, when I enter sudo gainroot and try to execute a program it too asks for a password. I have installed rootsh too. Any ideas what or how to find the password?
 

The Following User Says Thank You to gibman For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#2
There is no passwd for 'user' by default, you have to create one for ssh. For the user 'user' you can do that without rootsh
Code:
passwd
asks you for it.

During the install of openssh you were asked to create the passwd for 'root'. One might not be able to decrypt this passwd from the hash stored in /etc/shadow file. You better know it...
 

The Following 2 Users Say Thank You to michaaa62 For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#3
I have never had success with 'sudo gainroot'. I always just type 'root' to become root and it does not ask me for a password. YMMV.

I was about to ask the same question about the default user password for SSH. Running 'passwd' as user gave me an error ("The password for user cannot be changed"), but having found this thread pointed me in the right direction. As root, run:
Code:
passwd user
It will prompt you for a new password, not asking for the old one. It said min 5 max 8 characters but I used 4 and it did not complain. The next time I did ssh user@<my N900's ip>, I used the password set as above and... voilá!

Last edited by pichlo; 2013-03-21 at 23:00.
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:31.