Linux Lab #3

Due Monday, June 6

Use the script command to make a log of your activities. The log should be named Lab3.HOSTNAME.DATE where HOSTNAME is your hostname (fetched from an environment variable or inline execution) and DATE is the current date and time in the format MMDDYY (fetched with inline execution). (E.g. "Lab3.LINFORD3040.052305")

In answering direct questions below (as marked by the question-mark '?'), use a shell comment to give your answer. For example, if I say: "What is the command to give you the system time?" You should type, at the command prompt, "# date is the command" or something to that effect. The important part is the hash-mark '#' which causes the shell to ignore everything behind it.

I strongly recommend that you use two terminals: one to run the script command and one to test your commands before executing them under script. It's also a good idea to use shell comments to say which part of the assignment the following commands are for.

SSH Configuration

  1. Become root
  2. Use rpm to see if SSH is installed.
  3. If it is not installed, execute the following command to retrieve the ssh package (don't forget the ' .' on the end):
    scp cs3040@ .
  4. Install the package (if not installed)
  5. Change your ssh server to ...
  6. Change your ssh client to...
  7. Make a globally known host
  8. Use catto show the contents of your host configuration file, your client configuration file, your known hosts file, your banner, and your motd

When finished, type exit or press ^D until you get a message like "Script done, file is Lab3.HOSTNAME.DATE". To turn in the assignment, scp the logfile to as user "cs3040"