There's a closed pull request on the void-packages repository openssh: fix default path https://github.com/void-linux/void-packages/pull/43338 Description: set default path to '/usr/local/sbin:/usr/local/bin:/usr/bin'. by default, openssh's default path is `/usr/bin:/bin:/usr/sbin:/sbin`, according to `appendpath` function in `/etc/profile`, /usr/local/{bin,sbin} will be append to the end of user's $PATH when it is a **ssh connection**. This fixes the issue. [ref1 : archlinux](https://github.com/archlinux/svntogit-packages/blob/0a37d1bd869f9f1e4e6f9d6f5b249510f84140f0/trunk/PKGBUILD#L79) [ref2 : alpine linux](https://git.alpinelinux.org/aports/tree/main/openssh/APKBUILD#n116) @leahneukirchen @classabbyamp