SiteScope Monitoring via Secure Shell (SSH)As network security is increasingly important, SiteScope supports a number of security capabilities. One of these is support for remote server monitoring using Secure Shell (SSH) connections. You can use SSH to connect to a server and automatically send a command, so that the server will run that command and then disconnect. This is useful for creating automated processing and scripting. Secure Shell (SSH), sometimes known as Secure Socket Shell, is a UNIX-based command interface and protocol for securely getting access to a remote computer. It is widely used by network administrators to control Web and other kinds of servers remotely. SSH commands are encrypted and secure in several ways. Both ends of the client/server connection are authenticated using a digital certificate, and passwords are protected by encryption. There are a number of possibilities and issues involved in using SSH for SiteScope Monitoring. This section describes:
SiteScope and SSHAs noted above, SSH uses a client-server architecture. Secure Shell client machines make requests of SSH daemons or servers on remote machines. Monitoring with SSH has two basic requirements:
With the 7.8.1.1 release of SiteScope, there are two SSH client options for use on the server or machine where SiteScope is running. SiteScope now includes a SSH client written in Java and native to the SiteScope application code. This client eases the setup of SSH connections and generally uses fewer system resources than external SSH clients. SiteScope for Windows NT/2000 also ships with a copy of the PuTTY SSH client and utilities. The PuTTY SSH client, plink.exe, can be used to enable SSH connectivity for SiteScope for Windows NT/2000. SiteScope for Solaris and Redhat Linux make use of the SSH utilities normally bundled with those operating systems or available for download. The following table outlines the SSH connectivity options currently supported with SiteScope. See the notes below the table for important information about configuring and managing SSH connectivity.
The following are important notes regarding the use of SSH in general and specific to using SSH and SiteScope. Notes:
Configuring Remote UNIX Servers for SSH MonitoringSiteScope for Solaris or Linux supports remote monitoring via SSH. Setting up the SSH hosts on the remote servers you want to monitor in the UNIX environment can be very involved and is beyond the scope of this document. Some suggested resources on installation of the OpenSSH daemon are http://www.sunfreeware.com/openssh.html (for Solaris) and http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/ref-guide/s1-ssh-configfiles.html for Redhat Linux The following are requirements for configuring remote UNIX servers for SSH monitoring with SiteScope in a UNIX environment:
You should verify SSH client-to-server connectivity from the machine where SiteScope is running to the remote machine you want to monitor. You should check SSH connectivity outside of the SiteScope application before setting up remote server connections using SSH in SiteScope. For example, if SiteScope is running on Solaris or Linux, using the following command line requests a ssh connection using SSH2 to the server remotehost: ssh -2 remotehost This normally will return text information that indicates the version of SSH protocol that is being used. Also, this will attempt to authenticate as the current user. Use the -l username switch to request a login as a different user. For SiteScope running on Windows, see the section on Testing SSH connectivity with PuTTY utilities for information about testing SSH connectivity outside of the SiteScope application on Windows NT/2000 machines. Once you have confirmed SSH connectivity, create or configure UNIX Remote settings in SiteScope to use SSH as the connection method. Configuring Remote NT Servers for SSH MonitoringThe default remote connection method used by SiteScope for NT-to-NT connectivity and monitoring in Windows NT/2000 networks is NetBIOS. While this has provided ease of connectivity, it does have several disadvantages. One is that NetBIOS is relatively vulnerable in terms of network security. Another is that it does not support remote execution scripts. Running commands on remote servers requires that scripts be executed locally with commands to the remote machine being written using the UNC syntax of remote servers. Even then, some parameters are not returned from the remote server via NetBIOS. Starting in version 7.6, SiteScope supports monitoring of remote Windows NT/2000 servers using SSH. This technology has been tested with the OpenSSH binaries from Cygwin available at http://www.cygwin.com/ installed as the SSH server on the remote server. Note: The Network Simplicity "OpenSSH on Windows" (support is reportedly to be discontinued) and the Cygwin SSH implementations have been shown to be incompatible with each other and should not both be installed on the same machine. If the Network Simplicity OpenSSH has been installed on a server you want to monitor with SiteScope, you should manually uninstall the Network Simplicity software before installing the Cygwin SSH. Note: If there are more than one version of the Cygwin utilities or more than one SSH server installed on the SiteScope machine, there may be conflicts which prevent the SSH connections from working. An error message such as: "could not find entry point" is one indication of this kind of conflict. If you suspect this error, search the machine for multiple copies of cygwin1.dll. It may be necessary to remove all versions of the utilities and then reinstall only a single installation to resolve this problem. There are two main steps for configuring remote NT Servers for SSH monitoring with SiteScope: 1. Installation and Configuration of a SSH ServerIn order to enable SiteScope monitoring using SSH, a SSH server must be installed and configured on each remote server you want SiteScope to connect to. There are two software packages generally available that will enable SSH capability. One is the Cygwin environment available from RedHat at http://www.cygwin.com/. Another package is the OpenSSH for Windows available at http://lexa.mckenna.edu/sshwindows/. The following sections describe the installation of OpenSSH servers on remote NT Servers: Note: The following instructions assume that no other cygwin utilities are installed on the machine and that the machine has Internet access. To install and configure a Cygwin OpenSSH server on Windows NT/2000 servers
Note: Any time that you run the mkpasswd -l /etc/passwd command (for example, when adding a new user) you will need to edit the /etc/passwd file again to make sure the shell is set to /bin/cmd for the account being used by SiteScope. To install and configure an OpenSSH for Windows server on Windows NT/2000 servers Note: The OpenSSH for Windows package is an alternative to the Cygwin SSH package. The Cygwin product may have changed since the documentation was added to SiteScope. There are also cases where some versions of the Cygwin SSH server have not returned the data needed for SiteScope monitoring. The OpenSSH for Windows package can solve this problem and you should use this package in place of the Cygwin package.
2. Installation of SiteScope SSH FilesSiteScope includes a set of files that must be installed on each remote NT server in order to enable certain commonly used server monitoring. Use the following steps to install a set of files that SiteScope needs to enable certain server level monitoring via SSH on remote NT Servers:
After you have completed the steps above, it is recommended that you test SSH connectivity from your SiteScope server by using plink.exe or PuTTY.exe as described in the section Testing SSH connectivity with PuTTY utilities. After confirming SSH connectivity between SiteScope and the remote server, you can set up NT Remote configurations as described in the User Guide and select SSH as the connection method. SiteScope SSH Client Connection OptionsOnce you have set up SSH servers or daemons on remote servers, you need to configure the SSH client that SiteScope will use to connect to the remote servers. As noted above, SiteScope includes two client options for SSH connectivity. The following presents an overview of the client options. More information about each option is included in the sections indicated.
|