Ssh connection refused for domain name but not for IP address

#Hello yunohost community !

This project is just what was missing for simple multi-purpose homeservers. And the possibility to create custom apps with relatively simple scripts seems an amazing possibility (not possible on freedombox). I hope to be able to contribute !

I have a problem to connect with ssh to my yunohost instance installed on raspbian jessie.

I can’t connect with:

$ ssh
ssh: connect to host port 22: Connection refused

Interestingly it is possible by using the IP:

$ ssh root@
root@'s password: 

The domain name resolution works for other accesses ( is functional) and ping:

$ ping
PING ( 56(84) bytes of data.
64 bytes from ( icmp_seq=1 ttl=63 time=1.08 ms
64 bytes from ( icmp_seq=2 ttl=63 time=1.22 ms
64 bytes from ( icmp_seq=3 ttl=63 time=1.43 ms
--- ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 1.084/1.249/1.439/0.146 ms

g@gg:~$ ping
PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=64 time=1.22 ms
64 bytes from icmp_seq=2 ttl=64 time=1.19 ms
64 bytes from icmp_seq=3 ttl=64 time=1.21 ms
--- ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 1.198/1.212/1.226/0.041 ms

So DNS seems to work and port 22 is open (yunohost firewall confirms).
Any advice on what could go wrong ? Any investigation lead ?

For info I have installed app and am connected by wifi on the hotspot.

your is resolved to
Apparently, your ssh daemon is not listening to every IP addresses your server got, but only maybe to
Can you do a netstat -plnt | grep ssh on your yunohost instance and post the result here ?

Here it is :

# netstat -plnt | grep ssh tcp 0 0* LISTEN 431/sshd tcp6 0 0 :::22 :::* LISTEN 431/sshd

I don’t understand these lines and there’s no reference to

How can I set sshd to listen to several IP addresses ?

Anyway, thanks for your answer !!

Are you behind a modem ? maybe your have forgotten to make the port forwarding from port 22 to your yunohost’s port 22. Check this :
You seem to have a Free ADSL service, so check

Well thank you matlink, you pointed it !
I can access with https and ssh correctly after setting the port redirection in

I’m sorry for the trouble as everything is nicely documented…

I thought UPnP IGD worked as the 80 port was nicely redirected from the freebox to the yunohost instance.
This automatic redirection also fails now. UPnP activation complains about no compatible device found. I thought the freebox was one, why is it failing ? And why was it working for a time ?

$ sudo yunohost firewall upnp enable Error: No UPnP device found Error: Unable to open UPnP ports

Any idea to debug what’s failing on a freebox ?

Thanks for the great support !