Skip to content
Snippets Groups Projects

Slow SSH Connection fix with avahi

Open Imported Clubelek Asso requested to merge test-fix/slowSSHConnection into master
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -115,7 +115,9 @@ sudo raspi-config
Go to 'System Options'> 'Hostname' and enter the new hostname you want to use. This will modify the `/etc/hostname` and `/etc/hosts` files.
In `/etc/avahi/avahi-daemon.conf`, uncomment the `host-name` and set it to your new hostname: `host-name=your-hostname`. For some reason, if you don't change this then the SSH connection when using the custom domain name is very slow...
In `/etc/avahi/avahi-daemon.conf`, uncomment the `host-name` and set it to your new hostname: `host-name=your-hostname`. For some reason (that we don't know), the use of `avahi` make the SSH connection very slow... We discover a fix that seems to work until now. You need to disable ipv6 connections and also set the domain. Change the value of `use-ipv6` from `yes` to `no` and uncomment line `domain-name=local`.
Reboot your Raspberry Pi for the `avahi` mDNS daemon to apply the changes.
You should now be able to `ping your-hostname.local` and `ssh pi@your-hostname.local` from your computer if it is on the same network as the Raspberry Pi.