Why 0.0.0.0 didn't work? Or why 127.0.0.1 didn't work?
According to the man page for sshd_config:
Multiple ListenAddress options are permitted.
However I tested this myself. If you have only 1 network connection, configured as 192.168.0.2, to listen on both addresses, this will work:
ListenAddress 127.0.0.1
ListenAddress 192.168.0.2
As will this (which will actually listen on ALL local addresses - though in this scenario we only have the two above):
ListenAddress 0.0.0.0
The above use of 0.0.0.0 will ONLY work if NOT used with any other addresses. This makes some sense as 0.0.0.0 is ALL so anything else would be useless anyway but the man page doesn't say this and can therefore cause some confusion (as above). In other words, this will NOT work (it will only listen on 192.168.0.2):
ListenAddress 0.0.0.0
ListenAddress 192.168.0.2
putting the nec ip in place of 0.0.0.0 it works! very weird!
thanks
]]>Why 0.0.0.0 didn't work? Or why 127.0.0.1 didn't work? Anyway you probably will have to wait for one of the gurus to explain this. Don't have a clue.
Enjoy your freenx. :-)
]]>Well, a glance at the freenx wiki shows that the only time you changed something in ssh is in adding
ListenAddress 127.0.0.1
I had a look at my sshd_config and saw that I have the following:
ListenAddress 192.168.0.1
ListenAddress 127.0.0.1the first being the ip address of my network card that connects to the rest of my local network. Or you can use the default
ListenAddress 0.0.0.0
which listens everywhere, I think. You might still want to add the 127.0.0.1 as a separate line. No harm, I'm sure.
I think if sshd is *only* listening at 127.0.0.1 no outside computer will be able to connect. Remember to restart sshd if you change the config. If this doesn't work, I'm out of ideas. :-) All the best.
GREAT!
i had the default address! changing it to 192.168.0.3 it works!!
Could you explain why?
Thanks a lot!
]]>ListenAddress 127.0.0.1
I had a look at my sshd_config and saw that I have the following:
ListenAddress 192.168.0.1
ListenAddress 127.0.0.1
the first being the ip address of my network card that connects to the rest of my local network. Or you can use the default
ListenAddress 0.0.0.0
which listens everywhere, I think. You might still want to add the 127.0.0.1 as a separate line. No harm, I'm sure.
I think if sshd is *only* listening at 127.0.0.1 no outside computer will be able to connect. Remember to restart sshd if you change the config. If this doesn't work, I'm out of ideas. :-) All the best.
]]>Connection refused means that the computer with freenx server does not allow an ssh connection from your other computer. Nothing to do with freenx. I would suspect that your hosts.deny has the ALL: ALL: DENY line. Comment that out and try to connect again. The other possibility is that your ssh might not be set up properly. Or as ngoonee suggested, you might have a firewall set up that disallows connections. Freenx does not alter iptables.
*Edit* I just read carefully your last post: you can ssh previously but now you cannot. That is what you need to solve. You need to think back as to what you did that might cause this. Freenx by itself does not change anything. At most you should get an authentication fail message to involve freenx.
Files you're talking are the following:
#
# /etc/hosts.allow
#
sshd: ALL
# End of file
#
# /etc/hosts.deny
#
#ALL: ALL: DENY
# End of file
I never set any firewall, iptable is not installed
During freenx installation I just followed the wiki. When I tried to connect through the nxclient I got connection refused, then I realized that there's some problem with ssh. I restarted the demon more than once, but i don't know what's going on! I can't understand why it doesn't work.
any suggestion?
]]>*Edit* I just read carefully your last post: you can ssh previously but now you cannot. That is what you need to solve. You need to think back as to what you did that might cause this. Freenx by itself does not change anything. At most you should get an authentication fail message to involve freenx.
]]>Check out the rules of iptables, there's guides on it all over, including in the wiki. Start with an `iptables -L` and read through, its not really very hard to understand. Freenx may have done something to your iptables rules.
]]>I tried also telnet
telnet 192.168.0.3 22
Trying 192.168.0.3...
telnet: Unable to connect to remote host: Connection refused
What else would be useful to check?
]]>Was it connection refused, timeout during authentication, authenticated then timeout?
]]>