Installing SSH on Your Linux Machine

 

    First, you need to download the tar file (for version 2.0.13) from the official site.  Next, you need to un-tar the file using the command

   tar -xzvf <name of tar file>

    (The -v option is unnecessary, but it allows you to watch the progression of the uncompression process, thereby allowing you to know that your computer is working.)

    Once you have uncompressed it, you will need to follow the README instructions included at the top level directory from wherever you un-tarred the file.  At the time when this written, this included the following two instructions:

    make install

   make

   Once you have installed ssh2 on your machine, you need to load the ssh2 daemon in order to run ssh2.  You have two options here.  First, you can load it manually each time (which is probably what you want to do if you are comparing telnet and ftp with and without ssh2.)  The other option is to make it run sshd2 (the secure shell daemon) when the computer starts up.  If you decide to go with the first option, then just type:

    sshd2

    when you want to run the daemon. 

    On the other hand, if you want to run it automatically, you first need to find your rc.local file, which is usually located in your /etc/ directory (although sometimes it might be in a sub-directory of /etc/

    Once you have found it, you need to determine where your daemon is located.  Type

    whereis sshd2

    The path should be displayed (if it is not, you will need to search your directories for the file.)  Now you need to determine if the actual path of the daemon is included in your environmental path.  Type

    echo $PATH

    If one of the paths (each is delineated by a colon) is the same as your path to the daemon, then open your rc.local file and skip the paragraph (and the PATH=*** command).

    Since we don't have the correct path, we will need to add it to the path at startup.  In order to do this, open rc.local and go to the end of the file.  Type in

    PATH=$PATH:<path of the secure shell daemon>

    Now that the environment is set up so that it can find the secure shell daemon, we want it to run at start up, so we type:

    sshd2

    Now, when the machine is rebooted, the secure shell daemon will be running!