On Sun, 23 Nov 2025, [email protected] wrote: > On Sun, Nov 23, 2025 at 05:39:15PM +0000, [email protected] wrote: >> i've used sshfs with autofs for many years with little or no problems >> today i added a new server that refuses to work >> >> automount[1907]: add_host_addrs: hostname lookup for :sshfs#user@foo-bar >> failed: Name or service not known >> >> the entry in auto.sshfs is exactly the same as 7 others >> only the host name has a - in it >> >> i can use sshfs on the command line with this server just fine > > Wait: in the command line that works? Perhaps then name > resolution isn't working yet at the moment systemd tries > to do the automount?
i have no problem accessing this server the host command returns a correct name also dig and nslookup i tried changing the host name entry to ip address still same error i believe the problem is the - in the key part i tried escaping it and quoting it still not working

