My Adventures in Linux - Part 2 … Installing secure shell remote access to my Linux Box

Continuing with my Unix training at Centennial College, I got into the habit of using telnet from whichever computer I was working in class, to access my Linux box at home, and make notes online. The teachers were tickled too, in the sense of having access to a Linux box with up to date kernel, etc. However, I was aware of the dangers of using telnet, in which your data is flowing in an unencrypted format on the Internet. One of the teachers suggested that instead of telnet, I should install SSH (secure shell) which is widely used in business circles by organizations who have data of a sensitive nature being transferred around the net. I did so reading up on the subject, initially at www.ssh.org, and then being a supporter of open source software, I ended up at www.openssh.com. The latest source (openssh-2.5.1p1.tar.gz) was readily available, so I downloaded it, untarred it into my software install directory on the linux box and my adventure started. As is the case in most linux installations, the software usually has to be tweaked to match your computer, or you might need differential tools to make it work, so this being the case here, I decided to document this.

Here are the steps, which allowed me to enable the sshd daemon on my Linux box:

I am documenting this adventure, as a way of reminding myself of the steps I used to set this daemon/process up. It is also a reminder to myself and to other Linux users as to the importance of patience when involved with Linux. As of July 31, 2001, I have updated my sshd daemon to OpenSSH 2.9p2 using the source code. It was as easy as getting openssh-2.9p2.tar.gz from WWW.OpenSSH.com, doing the ./configure as described above, and then doing make followed by make install

 As of June 21, 2002, Version OpenSSH  3.3p1 was released which included a new security feature called privilege separation as a default option in the configuration. Privilege separation, or privsep, is method in OpenSSH by which operations that require root privilege are performed by a separate privileged monitor process.  Its purpose is to prevent privilege escalation by containing corruption to an unprivileged process. By reason of this default setup, the following was necessary after OpenSSH 3.3p1 was compiled and installed.:

 

# mkdir /var/empty

# chown root:sys /var/empty

# chmod 755 /var/empty

# groupadd sshd

# useradd -g sshd sshd

 

 

 

 

 

Hosted by www.Geocities.ws

1