ssh and passwd troubles


Forum: DSL Embedded
Topic: ssh and passwd troubles
started by: mattheg

Posted by mattheg on July 07 2005,01:43
I am using DSL_embedded under WinXPSP2 with group policies.
I cannot change the password for root or dsl using /usr/bin/passwd.  I keep getting a message "passwd: An error occurred updating the password file."

I am trying to do it as root -- sudo su.

Neither can I add a new user.  I again get an error related to access to the /etc/passwd file (or maybe /etc/shadow; I can't tell.)

I am also trying to access the dsl_embedded system from windows via ssh.  I have added the requisite '-redir' parm to the qemu command line and copied my id_dsa.pub and id_rsa.pub files into the authorized_keys file.  However I keep getting a password prompt for dsl@localhost when I try to ssh into it, and of course, I don't know the dsl user's password and cannot change it because of the problem above.

Any ideas? Anyone? Please?

Posted by drx456 on July 07 2005,03:39
you must run /etc/init.d/ssh_addusers first
Posted by mattheg on July 07 2005,04:07
Well that worked nicely as far as changing the password is concerned.  Thanks.

It just refreshes /etc/passwd-, /etc/gshadow, /etc/gshadow-, and /etc/group- from /KNOPPIX/etc/...

But if that is necessary, wouldn't it be better to source it into the 'start SSHD' script?  or something?

And does anyone have any idea about getting ssh to sign in using the user's public key rather than a password?  I've had this working between my Cygwin installation and both SunOS and WinSSHD/Win2003 so it should be possible.

Posted by roberts on July 07 2005,21:19
Quote
But if that is necessary, wouldn't it be better to source it into the 'start SSHD' script?  or something?


It is defaulted in the next, 1.3 release. You could have also used the boot time option of users but both will no longer be required.

Posted by Agus on Dec. 13 2005,21:36
I'm having the same problem that the ssh keep asking for password after I configued the authorized_keys2.

Does anyone ever tried using automatic ssh authentication with authorized_keys2 ?  I got it to work on Solaris and KNOPPIX 3.4, but not DSL, which keep asking for password.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.