Installation of OpenSSH on FreeBSD
This is a brief overview of installing OpenSSH 3.4, be warned this
information may not apply to your system, but it works for me on FreeBSD.
1. Privilege Separation
OpenSSH now comes with privilege separation and certain steps need to be
taken for sshd to operate correctly.
2. The Setup
New users/groups: sshd and authpf
Add the following user entry using vipw(8):
Add the following to /etc/group:
And if you wish to use authpf add the group authpf also:
more info on authpf can be found at:
make the directory /var/empty
OpenSSL 0.9.6 or greater is required to run OpenSSH 3.4 effectively since
SSH1 and Blowfish may not work correctly.
download source from http://www.openssl.org/source/
tar zxvf openssl-0.9.6.tar.gz
Note: the OpenSSL binary is now placed in /usr/local/ssl/bin this can be
changed at configure time but it is also possible to make a symbolic link
to the new binary from the old location do...
ln -s /usr/local/ssl/bin/openssl openssl
download source from your nearest mirror at
tar zxvf openssh-3.4p1.tar.gz
add the following line to /etc/ssh/sshd_config
5. Now running it:
Note: when upgrading sshd may have been in /usr/sbin to make a symbolic
link to the new binary do..
ln -s /usr/local/sbin/sshd sshd
And that's about it really.