OpenSSH showing different version from installed version on remote connection
Solution 1:
I assume that you built OpenSSH yourself from source?
You need to update your systemd service file to load your new binary, which is sshd
for the server, the ssh
binary is the client.
Either replace /usr/sbin/sshd
with your new one or edit the service file /lib/systemd/system/ssh.service
and set all sshd paths to reference /usr/local/sbin/sshd