Damn Small Linux - Not!
The forum for DSL-N
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SSH Access doesn't work

 
Post new topic   Reply to topic    Damn Small Linux - Not! Forum Index -> Other Help Topics
View previous topic :: View next topic  
Author Message
Penumbra



Joined: 19 May 2006
Posts: 13

PostPosted: Fri Jun 30, 2006 3:03 pm    Post subject: SSH Access doesn't work Reply with quote

Hey guys - I'm LOVING this distro..

I need to access the DSL-N box from the network, so I started the SSHD server from the toolbox, and tried to access from outside.

I get connected to the server, but no logins I try seem to work. I've even tried adding a new user to the system and even that new user/password pair fails.

Root (afaict) has no password, as SU just drops you right in - but using a blank password for root during SSH setup doesn't work. Same with the 'dsl' user.

I've read through the sshd_config and it all seems sane - it just doesn't work.

Can someone point me in the right direction? Or maybe tell me what the default root/dsl passwords are?

P
Back to top
View user's profile Send private message
clacker



Joined: 07 Jun 2006
Posts: 4

PostPosted: Fri Jun 30, 2006 9:00 pm    Post subject: Reply with quote

You need to set those passwords yourself.

[b]sudo passwd
sudo passwd dsl[/b]

Start the sshd daemon using the system->daemons->ssh->start menu. Then connect using ssh from the same machine to test it out.

ssh 127.0.0.1 -l dsl

When you added a user did it create a directory for that user in /home? If not that may be why that attempt failed. You need a password for whoever you are trying to connect as so the above should help.
Back to top
View user's profile Send private message
cybertesla



Joined: 04 Jul 2006
Posts: 1

PostPosted: Tue Jul 04, 2006 4:36 pm    Post subject: Same problem... still doesn't work Reply with quote

I have the same problem, but even using sudo to set the password doesn't fix the problem.
Back to top
View user's profile Send private message
clacker



Joined: 07 Jun 2006
Posts: 4

PostPosted: Wed Jul 05, 2006 1:38 pm    Post subject: Reply with quote

I hadn't tried ssh on dsl-n, but was rather responding to what I thought was a question about passwords. I tried ssh and it looks like it doesn't work. ssh rejects the passwords I set for user dsl. The cluprit may be hiding in /etc/ssh/sshd_config, but I'm not savvy enough to see what the problem is.
Back to top
View user's profile Send private message
roberts



Joined: 17 Apr 2006
Posts: 320
Location: OC CA USA

PostPosted: Thu Jul 06, 2006 4:48 pm    Post subject: Reply with quote

I have fixed this in RC2.
Hopefully I can get RC2 out soon.
Back to top
View user's profile Send private message Visit poster's website
Penumbra



Joined: 19 May 2006
Posts: 13

PostPosted: Thu Jul 06, 2006 7:54 pm    Post subject: Reply with quote

[quote="roberts"]I have fixed this in RC2.
Hopefully I can get RC2 out soon.[/quote]

Can you give me a hint so I can fix it locally, pls?!

It's driving me crazy.
Back to top
View user's profile Send private message
roberts



Joined: 17 Apr 2006
Posts: 320
Location: OC CA USA

PostPosted: Thu Jul 06, 2006 9:46 pm    Post subject: Reply with quote

Allow me to correct myself, it is working in RC2.

I have abandoned the Knoppix 3.9 based modules and kernel.
I have found so much strangeness being based on 3.9 and the show stopper for me was the boken unionfs.

So I did not try to correct anything within RC1.

I am trying to get RC2 out real soon.
But RC2 is almost like a complete rework on the distro.
Please be patient.

Remeber release candidates are only good for testing.

I appreciate all the feedback and it has helped me shape the new RC2.
Comming soon.
Back to top
View user's profile Send private message Visit poster's website
Penumbra



Joined: 19 May 2006
Posts: 13

PostPosted: Fri Jul 07, 2006 1:55 pm    Post subject: Reply with quote

Ok. I see .

For those who are having troubles like this, I found a way to get SSH working - although it's still pretty freekin' broken.

Setting a passwd on Root or DSL doesn't work for SSH access. Ever.

As root on the box, if you call "/usr/sbin/adduser.lua" it will create a user that CAN ssh into the box.

... however you're stuck in user space.

Calling 'su' from this user through SSH silently fails, running 'sudo' complains that the new user isn't in the /etc/sudoers file and of course the new user can't edit the file to put himself in there.

I had someone add a user to a remote box for me to test on, and once we got into the box with SSH he left, so I was stuck with a login that was completely hosed... BUT I got into the box remotely!

I'm going to work on tweaking the user today when I get hands on the box again and I'll post my findings.

P
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Damn Small Linux - Not! Forum Index -> Other Help Topics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group