Linux SSH2 Client/Server | All about OS

Linux SSH2 Client/Server

Категория: Securing and Optimizing

Cleanup after work
[root@deep /]# cd /var/tmp
[root@deep tmp]# rm -rf ssh-version/ ssh-version.tar.gz
The “rm” command as used above will remove all the source files we have used to compile and install SSH2. It will also remove the SSH2 compressed archive from the 7var/tmp” directory.
Configurations
All software we describe in this book has a specific directory and subdirectory in a tar compressed archive named “floppy.tgz” containing file configurations for specific programs. If you get this archive file, you won’t be obliged to reproduce the different configuration files below, manually, or cut and paste them to create your configuration files. Whether you decide to copy manually or get the files made for your convenience from the archive compressed files, it will be to your responsibility to modify, adjust for your needs and place the files related to SSH2 software in their appropriate places on your server, as shown below. The server configuration files archive to download is located at the following Internet address: http://www.openna.com/books/floppy.tgz
•    To run the SSH2 Client/Server, the following files are required, and must be created or copied to the appropriate directories on your server.
Copy the sshd2_config file to the 7etc/ssh2/” directory. Copy the ssh2_config file to the 7etc/ssh2/” directory. Copy the ssh file to the 7etc/pam.d/” directory.
You can obtain the configuration files listed below on our floppy.tgz archive. Copy the following files from the decompressed floppy.tgz archive to the appropriate places, or copy them directly from this book to the concerned file.
Configure the ‘7etc/ssh2/ssh2_config” file
The configuration file for ssh2 7etc/ssh2/ssh2_config” allows you to set options that modify the operation of the client programs. The files contain keyword-value pairs, one per line, with keywords being case insensitive. Here are the more important keywords; a complete listing is available in the man page for ssh2 (1).
Edit the ssh2_config file (vi /etc/ssh2/ssh2_config) and add or change, if necessary:
#    ssh2_config
#    SSH 2.0 Client Configuration File
This tells ssh2_config file to set itself up for this particular configuration setup with:
Port 22
The option “Port” specifies on which port number ssh connects to on the remote host. The default
port is 22.
Ciphers blowfish
The option “Ciphers” specifies what cipher should be used for encrypting sessions. The blowfish
uses 64-bit blocks and keys of up to 448 bits.
Compression yes

Страниц: 1 2 3 4 5 6

« Configure OpenSSH to use TCP-Wrappers inetd super server
Configure sshd2 to use top-wrappers inetd super server »