|
|
|
|
|
|
|
Secure Shell is a way to access your machine using encryption to protect the content of your connection to your machine. All authentication is encrypted which prevents eavesdroppers from getting your password. For further information on the benefits of Secure Shell, see this UMBC web page.
For the UMBC RedHat Distribution, several steps need to be followed to get the Secure Shell
Server working. You will need to be logged in as root and perform the following
steps:
openssh-server RPM
The openssh-server RPM can be downloaded from mirrors.umbc.edu. The RPM is located in /pub/linux/7.3/en/os/i386/RedHat/RPMS/openssh-server-3.1p1-3.i386.rpm. If you do not have access to mirrors.umbc.edu, you may use any of the RedHat mirrors to retrieve the above RPM.
openssh-server
Once you have downloaded the openssh-server RPM, you can install openssh-server
with rpm -i <filename> where <filename> is the RPM file.
After you have installed the openssh-server RPM, run up2date to check for
updates to the openssh-server package. This is a network service that will be accessible
to many users on the Internet, and it is very important that you keep this package updated with all
the latest security fixes.
The firewall configuration needs to be modified to allow access to the Secure Shell Server. Change your
/etc/sysconfig/ipchains to the following (the bold line needs to be added to the file).
Note that ORDER IS EXTREMELY IMPORTANT, the line in bold must be added in the exact location
displayed below:
# Firewall configuration written by lokkit # Manual customization of this file is not recommended. # Note: ifup-post will punch the current nameservers through the # firewall; such entries will *not* be listed here. :input ACCEPT :forward ACCEPT :output ACCEPT -A input -s 0/0 -d 0/0 123 -p tcp -y -j ACCEPT -A input -s 0/0 -d 0/0 123 -p udp -j ACCEPT -A input -s 0/0 67:68 -d 0/0 67:68 -p udp -i eth0 -j ACCEPT -A input -s 0/0 67:68 -d 0/0 67:68 -p udp -i eth1 -j ACCEPT -A input -s 0/0 -d 0/0 -i lo -j ACCEPT -A input -p tcp -s 0/0 -d 0/0 22 -y -j ACCEPT -A input -p tcp -s 0/0 -d 0/0 0:1023 -y -j REJECT -A input -p tcp -s 0/0 -d 0/0 2049 -y -j REJECT -A input -p udp -s 0/0 -d 0/0 0:1023 -j REJECT -A input -p udp -s 0/0 -d 0/0 2049 -j REJECT -A input -p tcp -s 0/0 -d 0/0 6000:6009 -y -j REJECT -A input -p tcp -s 0/0 -d 0/0 7100 -y -j REJECT
The machine needs to be rebooted for the Firewall changes to take effect.
This will allow you to access this machine using the ssh protocol.
To learn more about Secure Shell, please consult the man pages that are installed with the
openssh and openssh-server packages. Look at the man pages for ssh,
and scp. Further information can be obtained at the
Openssh Website.
| Previous |
|