## Notes for upgrading SSH from v3.7.1p1 ==> v3.7.1p2 (sean, 30.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. # 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 (don't install conflicting directories): cd /opt/install pkgadd -d OBSDssh-3.7.1p2-sparc-sun4u-5.8.pkg OBSDssh # Save the new config, and move back the old config and keys. mv /etc/ssh/ssh_config /etc/ssh/ssh_config.v371p2 cp /etc/ssh/sshd_config /etc/ssh/sshd_config.v371p2 cp -p /var/tmp/ssh/ssh_* /var/tmp/ssh/sshd_* /etc/ssh # Compare the new and existing SSH configs. in /etc/ssh # 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*