Difference between revisions of "OPS235 Lab 7 - Fedora17"
Brian.gray (talk | contribs) |
Brian.gray (talk | contribs) |
||
Line 28: | Line 28: | ||
== Lab Investigations == | == Lab Investigations == | ||
− | === Investigation 1: How do you | + | === Investigation 1: How do you enable the sshd service. === |
− | {{Admon/note | Note! | Complete the following steps on your fedora host.}} | + | {{Admon/note | Note! | Complete the following steps on your fedora host and all 3 VM's.}} |
+ | |||
+ | * OpenSSH should have been installed by default. Lets confirm this by issuing the command: | ||
+ | ** <code>rpm -qa | grep ssh</code> | ||
+ | * You should see a number of packages installed including <code>openssh-clients</code> and <code>openssh-server</code> | ||
+ | * <code>openssh-server<code> installs a service called <code>sshd</code>, confirm this service is running by issuing the command: | ||
+ | ** <code>service sshd status</code> | ||
+ | * Now check that the sshd service is configured to start for runlevels 2, 3, 4, & 5, by issuing the command: | ||
+ | ** <code>chkconfig --list sshd</code> | ||
+ | * If the service is not configured correctly fix it by issuing the command: | ||
+ | ** <code>chkconfig --level 2345 sshd on</code> |
Revision as of 17:57, 15 March 2010
Contents
Setup and Configure Secure Shell Services (ssh) Using Virtual Machines
Objectives
- To set up, configure Secure Shell Services (ssh/sshd)
- To use the ssh, scp, and sftp clients to access another host securely
- Use ssh to tunnel X applications
- Use ssh to tunnel other traffic
- To customize sshd to create a more private, secure system
Reference
- man pages for ssh, ssh-keygen, sshd_config, ssh_config, scp, netstat, sftp, ifconfig, ping, arp, netstat, service
- A good ssh tutorial
- A good HOW-TO to make ssh more secure
Required materials
- Fedora 12 Live CD or a classmate on the same pod
- One SATA hard disk in a removable drive tray with Fedora host and 3 Fedora Virtual Machines installed
- Completion of Lab 6
Lab Preparation
Lab Investigations
Investigation 1: How do you enable the sshd service.
- OpenSSH should have been installed by default. Lets confirm this by issuing the command:
-
rpm -qa | grep ssh
-
- You should see a number of packages installed including
openssh-clients
andopenssh-server
-
openssh-server<code> installs a service called <code>sshd
, confirm this service is running by issuing the command:-
service sshd status
-
- Now check that the sshd service is configured to start for runlevels 2, 3, 4, & 5, by issuing the command:
-
chkconfig --list sshd
-
- If the service is not configured correctly fix it by issuing the command:
-
chkconfig --level 2345 sshd on
-