Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: ssh and passwd troubles, Trouble with ssh authentication and p/w< Next Oldest | Next Newest >
mattheg Offline





Group: Members
Posts: 2
Joined: July 2005
Posted: July 07 2005,01:43 QUOTE

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?
Back to top
Profile PM 
drx456 Offline





Group: Members
Posts: 40
Joined: Jan. 2004
Posted: July 07 2005,03:39 QUOTE

you must run /etc/init.d/ssh_addusers first
Back to top
Profile PM 
mattheg Offline





Group: Members
Posts: 2
Joined: July 2005
Posted: July 07 2005,04:07 QUOTE

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.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: July 07 2005,21:19 QUOTE

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.
Back to top
Profile PM WEB 
Agus
Unregistered






Posted: Dec. 13 2005,21:36 QUOTE

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.
Back to top
4 replies since July 07 2005,01:43 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: ssh and passwd troubles

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code