You are not logged in.

#1 2004-04-22 21:58:39

snorkel
Member
Registered: 2004-02-11
Posts: 44

Can't connect via SSH

I have been struggling with this for hours now.
I just installed widget and I cant connect to the box via ssh.
I have the daemon started, and netstat shows it listening.
I enabled root access in sshd_config and I commented out the lines in pam.d/sshd to disable root logon.

I even tried created another user and I still can't connect.

Anyone have any idea's?

Thanks

Snorkel

Offline

#2 2004-04-23 05:25:46

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Can't connect via SSH

Or even better, add:

sshd: ALL

to /etc/hosts.allow


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#3 2004-04-23 06:25:37

razor
Member
From: Kiev, Ukraine
Registered: 2004-04-08
Posts: 16

Re: Can't connect via SSH

I need to write sshd or ssh?
In other words, i need to write name of a service, or name, listed in /etc/services?

P.S. why /etc/services so small?


Best wishes, Alexander Solovyov

Offline

#4 2004-04-23 15:09:18

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Can't connect via SSH

I copied that line right out of my hosts.allow, it is correct.

You need to type the name of the service as it's seen in /etc/services.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#5 2004-05-06 06:11:53

jf/
Member
Registered: 2003-10-26
Posts: 79

Re: Can't connect via SSH

Xentac wrote:

I copied that line right out of my hosts.allow, it is correct.

You need to type the name of the service as it's seen in /etc/services.

erm... i'm not so sure about that. First of all, my /etc/services (fresh from a 0.6 install) doesnt have a ssh or sshd anywhere. If i do add a "ssh 22/tcp", then put a "ssh: ALLOW" in /etc/hosts.allow, that still doesnt work. If i change the ssh: ALLOW to sshd: ALLOW, that works (and i can remove the ssh line from etc-services as well)

Offline

#6 2004-05-06 16:44:46

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Can't connect via SSH

Ok then, the services part was wrong... that's only for inetd type applications.  My initial statement stands though.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

Board footer

Powered by FluxBB