2

I'm trying to connect to several computers via their hostnames since they get their IP via DHCP. I can successfully ping the machines via ping host-01.local.

ping, wget, avahi-resolve and even Firefox all send out the required mDNS packages, which I checked throug Wireshark (UDP on port 5353).

However ssh doesn't seem to try to resolve the adresses at all. There are no mDNS queries issued and the output for ssh host-01.local just says:

ssh: Could not resolve hostname host-01.local: Device or resource busy

For ssh -vvv host-01.local it is:

OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "host-01.local" port 22
ssh: Could not resolve hostname host-01.local: Device or resource busy

The client is running Linux Mint. The network I'm in doesn't seem to matter. Everything else related to avahi seems to work just fine.

6
  • Can you run ssh -vvv host-01.local to see what's happening? Jul 29, 2019 at 10:41
  • @ValentinBajrami I don't know if there's anything useful but I updated the question with your suggestion. Jul 29, 2019 at 10:50
  • Do you have something in your ~/.ssh/config file. Also does the ping command return you the correct address of the server you are trying to ssh to? Jul 29, 2019 at 11:02
  • 1
    @ValentinBajrami I do not have a config file at that location. The ping command returns the correct address, as does the avahi-resolve command. Jul 29, 2019 at 11:06
  • maybe you can check this link: superuser.com/questions/704785/… Jul 29, 2019 at 11:12

1 Answer 1

1

For some reason I had the 32-bit version of ssh on my system. Installing the 64-bit version seems to have solved all of my problems.

After looking through the strace of the command I noticed ssh had failed trying to load a bunch of libraries. This baffled me at first because most of these libraries are installed on my system, until I noticed some of the paths wich included i386-linux-gnu. That's when I realized I must have the wrong package installed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.