Install
Install¶
From source¶
You probably only want to install from source if:
- You're running on an old distro without security updates.
- You want to run a newer version than your distro offers.
Fedora¶
I'm running fedora-40 on a host.
-
Download openssh portable source code: from a mirror
-
Install deps:
-
Compile and install:
This will replace
/usr/sbin/sshd
.Non-system packages are more commonly installed to dirs under:
/usr/local
: default location, usually ahead of/usr
in$PATH
/opt
: Another common place for
I'm doing this because then the existing systemd files will just work.
-
Restart sshd:
-
Check version of sshd running:
Note: Your shell may have cached old version of client
Old version of ssh client still reported:
This is because shell hashed location:
Rehash and it should find new version: