You are not logged in.

#1 2008-05-01 14:45:45

dienadel
Member
Registered: 2005-12-23
Posts: 179

Can't connect via ssh (SOLVED)

Hello,

I can't connect to one PC from my home LAN using ssh in a console.

In KDE, i can connect using this:
fish://user@192.168.2.102:11111/home/user

But, if i open a console (konsole), i can't ssh'ing to the same computer. What i try:

ssh -p 11111 user@192.168.2.102
ssh -p 11111 192.168.2.102

But nothing happens. There isn't connection.

So, what am i doing bad?

thanks

Last edited by dienadel (2008-05-02 13:51:04)

Offline

#2 2008-05-01 15:09:55

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Can't connect via ssh (SOLVED)

Have you tried "ssh localhost" on the computer in question?

Offline

#3 2008-05-01 15:22:01

dienadel
Member
Registered: 2005-12-23
Posts: 179

Re: Can't connect via ssh (SOLVED)

colbert wrote:

Have you tried "ssh localhost" on the computer in question?

I understand as the "computer in question" the one that have the ssh server running. Here is the results of the tests:

ssh localhost:11111 ---> ssh: localhost:11111: Name or service not known
ssh 127.0.0.1:11111 ---> ssh: 127.0.0.1:11111: Name or service not known
ssh -p 11111 user@127.0.0.1 ---> ssh_exchange_identification: connection closed by remote host

The only daemons running are network, iptables and ssh

If more information needed, say it please

Thanks!

Offline

#4 2008-05-01 21:32:48

elgatofelix
Member
From: Chile
Registered: 2007-07-03
Posts: 137

Re: Can't connect via ssh (SOLVED)

Here is my hosts.allow file

#
# /etc/hosts.allow
#
SSHD: ALL
# End of file

Change yours at your caution.. but with this it will work


Are u listening?

Offline

#5 2008-05-02 12:23:46

dienadel
Member
Registered: 2005-12-23
Posts: 179

Re: Can't connect via ssh (SOLVED)

elgatofelix wrote:

Here is my hosts.allow file

#
# /etc/hosts.allow
#
SSHD: ALL
# End of file

Change yours at your caution.. but with this it will work

Well, it worked, But, then, i tested the following options:

SSHD: ALL
SSHD: 192.168.2.100
sshd: 192.168.2.100

And all off them worked fine.

So, i think that  the original file had some typping mistake. But, why  fish://user@192.168.2.102:11111/home/user worked? At least, now is perfect.

Thanks!

Offline

#6 2008-05-02 16:10:09

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Can't connect via ssh (SOLVED)

Ah, the blasted hosts.allow/deny files. They've been the less-than-obvious solution for me in many situations, hehe. Glad it works!

Offline

Board footer

Powered by FluxBB