How do you log into ssh?Forum: Other Help Topics Topic: How do you log into ssh? started by: ronin712 Posted by ronin712 on Aug. 25 2004,01:39
How do you log into ssh if you can't set a password? Running passwd (as root) gives an error trying to write the password file.
Posted by mikshaw on Aug. 25 2004,01:56
AGAIN, I'm just guessing... =o)I think the passwd file is initially stored on a read-only filesystem. If you install a .dsl extension or do something else to change the root system (somebody help explain this? fuzzy brain today....), you might be able to solve your trouble. Posted by ronin712 on Aug. 25 2004,23:25
While I would like to solve the "unchangeable password" problem, what I really want to do is just be able to use ssh.SSH is included in the base dsl distribution, so presumably it can be used. Is there anyone who has successfully ssh'ed into a dsl box? Posted by mikshaw on Aug. 25 2004,23:39
Possibly do "sudo /usr/sbin/sshd" or add it to a startup script. I haven't used it on DSL....perhaps the daemon doesn't start by default.
Posted by ronin712 on Aug. 26 2004,01:11
It doesn't start by default, but it's easy enough to start by running "/etc/init.d/ssh start". I can even connect to it remotely, but I have no idea what username or password will let me log in.
Posted by ripcrd6 on Aug. 27 2004,06:39
try "sudo passwd root" or "sudo passwd dsl"
Posted by ronin712 on Aug. 27 2004,14:45
passwd fails because it can't write the password file. I assume because the file it's trying to write is on a read-only volume (is this correct?)So... It looks like I need to be able to solve one of two problems: 1) Successfully set the password of dsl or root (i.e. get passwd working). 2) Allow ssh to login without using a password. This would not be my favorite option for obvious reasons. Posted by dsyates on Aug. 28 2004,21:45
changing passwords worked in 0.7.3; I get an error in 0.8.0. Has anyone been able to set the passwords?
Posted by roberts on Aug. 28 2004,22:42
Ah a bug in 0.8.0. Here is temporary fix.From Xshells->Root Access # rm /etc/shadow- # cp /KNOPPIX/etc/shadow- /etc/shadow- Now you can change the password. Posted by softgun on Feb. 05 2005,15:55
Hi Robert This bug seems to persist in 0.9.1 and 0.9.2 too. Can it be corrected in the next version please? Adding user postgres is important to get postgresql working with a postgresql.dsl Posted by Agus on Dec. 13 2005,22:02
I'm having problem that the ssh keep asking for password after I configured 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 Posted by mherger on Jan. 13 2007,15:41
For the records (too late for you I guess :-)): I had to "chmod 700 /home/dsl" and "chmod 700 /home/.ssh" to achieve this.
|