tonywhitmore.co.uk  

      blog : gallery : wiki : articles : projects : shell scripts : wallpaper : cv : links :
 Project Homepage

OpenSSH
OpenSSH

Preparation

  1. Download the OpenSSH source code from www.openssh.org.
  2. Download the OpenSSL source code from www.openssl.org.
  3. Download the zlib source code from www.gzip.org/zlib.
  4. Burn the downloaded files to a CD. This page assumes that the subdirectory /apps is used for the .tar.gz files. The CD-ROM can be a multi-session disk.

Give me more details on this

Booting

  1. Boot your Core Linux PC.
  2. Login as root. You will need to enter the password at the prompt.

Give me more details on this

Copy the sources

  1. Place the CD-R in the CD-ROM drive. Mount the CD-ROM drive under /mnt/cdrom.
  2. Change to the /apps directory on the CD-R.
  3. Copy the all the .tar.gz files to the directory /usr/src.
  4. Change to the /usr/src directory.

Give me more details on this

Configuring, compiling and installing OpenSSL

  1. Change to the /usr/src directory.
  2. Extract the source code from the .tar.gz file.
  3. Change to the /usr/src/openssl-0.9.6g directory.
  4. Run the ./config script.
  5. Run the make program.
  6. Run the make program with the argument test.
  7. Run the make program with the argument install.

Give me more details on this

Configuring, compiling and installing zlib

  1. Change to the /usr/src directory.
  2. Extract the source code from the .tar.gz file.
  3. Change to the /usr/src/zlib-1.1.4 directory.
  4. Run the ./configure script.
  5. Run the make program with the argument test.
  6. Run the make program with the argument install.

Give me more details on this

Configuring, compiling and installing OpenSSH

  1. Change to the /usr/src directory.
  2. Extract the source code from the .tar.gz file.
  3. Change to the /usr/src/openssh-3.5p1 directory.
  4. Run the ./configure script.
  5. Run the make program.
  6. Run the make program with the argument install.

Give me more details on this

Using the SSH Client

  1. At the command prompt enter the line:
    /usr/local/bin/ssh -p 22 user@192.168.0.1
    where user is a valid username on the remote system and 192.168.0.1 is the IP address or FQDN of the remote system. The value of -p 22 is the remote port on which the SSH server is listening.
  2. Accept the authentication key when prompted.
  3. Enter the user password for the remote machine when prompted. You will be given the system prompt of the remote machine.
  4. Enter logout at the remote prompt to finish the SSH session.

Give me more details on this

Starting sshd

  1. Add the user sshd to the system.
  2. Start the sshd daemon.
  3. Attempt to connect to sshd from your other computer using a SSH client.

Give me more details on this

Stopping sshd

  1. Stop the sshd using kill `cat /var/run/sshd.pid`.

Give me more details on this

Automating sshd

  1. Append the following line to the /etc/rc.d/rc.mu script:
    /usr/local/sbin/sshd -p 22
    You can also add comments and echoes for your own information.
  2. Insert the following line at the second line of the /etc/rc.d/rc.rb script:
    kill `cat /var/run/sshd.pid`
    You can also add comments and echoes for your own information.
  3. Insert the following line at the second line of the /etc/rc.d/rc.ha script:
    kill `cat /var/run/sshd.pid`
    You can also add comments and echoes for your own information.
  4. Reboot the system and check that sshd is running.

Give me more details on this

Creative Commons License
The text of this page is licensed under a Creative Commons License.


Valid CSS!     Valid HTML 4.0!     Valid RSS
Original design © For oswd.org by SquireCD