SSH (and SFTP) server on Android discoverable through avahi/bonjour I would like for my Android device (a Samsung Galaxy) to be discoverable through avahi/bonjour when it is connected to a WiFi network, and then to be able to access its filesystem via SSH (SFTP).

For me, that's a familiar and convenient way to access various devices in my local network: to discover their SSh service via avahi/bonjour (not to have to deal with IP addresses), and to ssh to them. I would use this way for my GNU/Linux systems (like Ubuntu).

Is there free (= libre -- because I appreciate the freedom of hacking) software for Android that would implement this, namely:


avahi/bonjour support for Android, so that the Android device would be reachable by name in the .local domain (instead of just by its IP address);
and an SSH server with support for publishing itself through Avahi/bonjour (mdnssd).
I have been using the free SSHelper (without rooting) since it recently added zeroConf broadcasting. It provides an SSH and RSYNC (file transfer) server, while also broadcasting a ZeroConf name. Another avahi/bonjour client can connect without needing to know the android hostname. Explained in more detail in this other answer: Set hostname for SSHelper