Technical Notes |
|
The technical note outlines the steps to follow to upgrade the F-Secure SSH Server for UNIX from version 3.3 to version 5.0.
Upgrading the F-Secure SSH Server for UNIX is a multi-step process:
Stop the Secure Shell (SSH) daemon using the command appropriate for your host:
Note: Command paths may vary depending on your host configuration.
Back up the sshd2_config file, the sshd_config file, and the host keys prior to upgrading. These files and keys should be preserved during the upgrade process, but it is a good idea to back them up before proceeding.
Locate the config and host files by issuing the following command:
find / -name ssh*_configAfter you install 5.0, restore the config files and host keys to the new directory, \etc\ssh2.
The initial steps to prepare for a binary installation are the same for all UNIX platforms. The actual installation and system configuration of F-Secure SSH is platform specific. For details, see 4. Install on Your Platform.
Note: The following examples describe installing F-Secure SSH for UNIX server software, but the same commands can be used to install F-Secure SSH Client for UNIX software.
Note: If InfoZip is not installed on your computer, you can find it on the F-Secure CD. Pre-compiled binaries are available in the /[platform]/utils/ directory. The source code is available in the /unix/utils directory. For information about InfoZip and Unzip, see Technical Note 1925.
The location of client and server binaries depends on your UNIX platform and how you installed the software. Normally all client and server binaries are located in the /usr directory. However, if you install binaries from a package in the tar-format, the binaries will be in the /usr/local directory.
The following tables show the default locations (on some common UNIX platforms) for F-Secure SSH for UNIX user and server files and directories.
| $HOME/.ssh2 |
Directory containing all SSH user-related files |
| $HOME/.ssh2/ssh2_config |
User SSH client configuration file |
| $HOME/.ssh2/identification |
File showing which key(s) to use for public-key authentication |
| $HOME/.ssh2/authorization |
File showing which key(s) to accept when logging on to a user account with public-key authentication |
| $HOME/.ssh2/hostkeys |
Directory containing the public keys of all known SSH servers (that is, the machines to which the user has previously connected) |
| $HOME/.ssh2/knownhosts |
Directory containing the public keys of the hosts from which the user wants to log on using host-based authentication |
| /etc/ssh2/ |
Directory containing all SSH server-related files |
| /etc/ssh2/ssh2_config |
System-wide client configuration file |
| /etc/ssh2/sshd2_config |
System-wide server configuration file |
| /etc/ssh2/hostkey |
Private host key used for server authentication |
| /etc/ssh2/hostkey.pub |
Public host key used for server authentication |
The instructions for installing F-Secure SSH for UNIX vary depending on your platform. This section includes steps for installing on the following platforms:
For installation instructions on platforms not covered in this note, see the platform-specific documentation shipped with your software package.
The F-Secure SSH products for Linux platforms are supplied in RPM (Red Hat Package Manager) binary packages.
Note: On a Linux system with RPM packages, you can use rpm -Uvh to upgrade the older installation.
Change your working directory to the directory where you extracted the software and run the following command with root privileges:
rpm -Uvh f-secure-ssh-server-x.y-z.i386.rpm The command varies according to the software and RPM release version. For example, server may be replaced with client, and the letters x.y-z should be replaced with the appropriate release number.
The software is now ready for use. Start the SSH server daemon by running the following command:
/etc/rc.d/init.d/sshd2 start Uninstall the package by entering the following command with root privileges:
rpm -e f-secure-ssh-server The F-Secure SSH daemon is stopped automatically when you run the rpm command with the e switch.
The F-Secure SSH package for Sun Solaris SPARC platform includes compiled binaries for Solaris 2.6, 7, 8, and 9.
Note: On Solaris, you must remove the old package using the pkgrm command before you install a new package.
To install F-Secure SSH with pkgadd, run the following command:
pkgadd -d f-secure-ssh-server-5.1-solaris.pkg You must manually shut down the F-Secure SSH daemon before uninstalling the package. Run the following command to stop the daemon:
/etc/init.d/sshd2 stop Uninstall the package by using the following command with root privileges:
pkgrm FSECsshs Install the package by using the following command with root privileges:
swinstall -s <path to package>/f-secure-sshserver-5.1-hpux11.x.depot SSH Note: <path to package> is the absolute path and name of the distribution file.
Start the F-Secure SSH daemon running the following command:
/sbin/init.d/sshd2 start You must manually shut down the F-Secure SSH daemon before uninstalling the package. Run the following command to stop the daemon:
/sbin/init.d/sshd2 stop Uninstall the package by using the following command with root privileges:
swremove SSH Note: On AIX, you must locate and remove the .toc file or the package will not upgrade because the directory where the files are installed will not be found.
Install the package by using one of the following commands:
Run the installp command with root privileges:
installp -d F-Secure.SSH Or, run the smit command:
smit install_latest If you want to apply the package without committing, you can use the -a flag with installp. Packages that are applied but not committed can be rejected later.
For more information about the installp command, refer to the AIX manual pages.
You must manually shut down the F-Secure SSH daemon before uninstalling the package. Run the following command to stop the daemon:
kill 'cat /etc/ssh2/sshd2_22.pid'Uninstall the package by entering the following command with root privileges:
installp -u F-Secure.SSH