Install & Configure OpenSSH

As I’m setting up a Linux CENT OS for an experimental project, I need to install and setup OpenSSH server into the Linux box, for secure and encrypted remote access instead of telnet and ftp.

To run an OpenSSH server, you must first make sure that you have the proper RPM packages installed. The openssh-server package is required and depends on the openssh package.

Firstly, I used yum to get the latest openssh packages.

# yum install openssh-server

By default, CENT OS 4.4 uses SSH Protocol 2 and RSA keys. Use the following steps to generate an 1024-bit RSA key pair for version 2 of the SSH protocol.

# ssh-keygen -b 1024 -t rsa

You will be asked for a passphrase for the public/private rsa key.

Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):[Press ENTER]
Enter passphrase (empty for no passphrase):[type your password and press ENTER]
Enter same passphrase again:[Repeat your password and press ENTER]
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/
The key fingerprint is:
e9:b9:91:33:21:55:ad:d6:d8:d3:74:42:be:dd:81:fc [email protected]

Now, you can uses Putty client to connect to your SSH server. Putty is a free tool for Telnet and SSH for Windown and Linux / Unix platforms

If you want to do more on OpenSSH, refer to the following sites:
OpenSSH – The Official Website
Chrooted SSH HowTo
Setup the SSH server to use keys for authentication

Have fun!

Posted in Linux Tagged with: ,

Leave a Reply