## Notes for upgrading SSH from v3.4 ==> v3.7.1 (sean, 20.9.03) --------------------------------------------- Download new package to /opt/install, make sure you also have a copy of the old package here too, incase you need to undo this procedure. Make sure random device exists: ls -l /dev/random # Kill all ssh connections and prngd, except your active one. # Look at the date/time of processes for this: ps -ef | grep ssh # Move ssh config files: # first clean files from previous upgrades: mv /var/tmp/ssh /var/tmp/ssh.$$ mv /etc/ssh /var/tmp # Remove previous package: pkgrm OBSDssh # Install new package: cd /opt/install pkgadd -d OBSDssh-3.7.1p1-sparc-sun4u-5.8.pkg # Save the new v3.7.1 config, and move back the old config # and keys. mv /etc/ssh/ssh_config /etc/ssh/ssh_config.v371 cp /etc/ssh/sshd_config /etc/ssh/sshd_config.v371 cp -p /var/tmp/ssh/ssh_* /var/tmp/ssh/sshd_* /etc/ssh # Compare the new and existing SSH configs. in /etc/ssh Comment out line like #RhostsAuthentication which are depreciated in the new version. Start SSH: /etc/init.d/openssh.server start Then test, test, test! Much later: Wipe files backed up in /var/tmp: rm -rf /var/tmp/ssh