| 1 | Initial SSH Usage |
|---|
| 2 | ================= |
|---|
| 3 | |
|---|
| 4 | Notes: |
|---|
| 5 | ------ |
|---|
| 6 | * Commands preceded with "$" imply that you should execute the command as |
|---|
| 7 | a general user - not as root. |
|---|
| 8 | * Commands preceded with "#" imply that you should be working as root. |
|---|
| 9 | * Commands with more specific command lines (e.g. "rtr>" or "mysql>") |
|---|
| 10 | imply that you are executing commands on remote equipment, or within |
|---|
| 11 | another program. |
|---|
| 12 | * If a command line ends with "\" this indicates that the command continues |
|---|
| 13 | on the next line and you should treat this as a single line. |
|---|
| 14 | |
|---|
| 15 | Exercises Part I |
|---|
| 16 | ================ |
|---|
| 17 | |
|---|
| 18 | 1. Connect to your PC with SSH |
|---|
| 19 | ------------------------------ |
|---|
| 20 | Windows Users |
|---|
| 21 | ------------- |
|---|
| 22 | |
|---|
| 23 | If you are using Windows and do not have an SSH client installed you can download a copy of the |
|---|
| 24 | free Putty SSH program here: |
|---|
| 25 | |
|---|
| 26 | http://noc.ws.nsrc.org/software/ |
|---|
| 27 | |
|---|
| 28 | Right click and save the putty.exe file to your Desktop, or some other location where you save |
|---|
| 29 | software. Once saved, double-clic on the putty icon. To connect to your PC enter in the name |
|---|
| 30 | of the PC in the "Host Name (or IP address)" box in putty: |
|---|
| 31 | |
|---|
| 32 | pcN.ws.nsrc.org |
|---|
| 33 | |
|---|
| 34 | Next you will receive a security alert from putty that the server's host key is not already cached |
|---|
| 35 | on your machine. Click on "Yes" to accept the key. |
|---|
| 36 | |
|---|
| 37 | When prompted with "Login as" enter "sysadm" |
|---|
| 38 | When asked for a password use the password given in class. |
|---|
| 39 | |
|---|
| 40 | That should be it. You are now connected to a terminal session on your machine. To log out you |
|---|
| 41 | can type: |
|---|
| 42 | |
|---|
| 43 | "exit" |
|---|
| 44 | |
|---|
| 45 | and this will end your terminal session. |
|---|
| 46 | |
|---|
| 47 | Unix/Linux/Mac OS X Users |
|---|
| 48 | ------------------------- |
|---|
| 49 | |
|---|
| 50 | Open a terminal window on your machine. If you don't know how to do this ask an instrutor for |
|---|
| 51 | help. |
|---|
| 52 | |
|---|
| 53 | At the prompt type: |
|---|
| 54 | |
|---|
| 55 | ssh sysadm@pcN.ws.nsrc.org |
|---|
| 56 | |
|---|
| 57 | When you see the warning that looks something like this: |
|---|
| 58 | |
|---|
| 59 | The authenticity of host 'pc12.ws.nsrc.org (10.10.4.12)' can't be established. |
|---|
| 60 | RSA key fingerprint is 59:e2:62:a3:90:d8:a2:43:5a:95:a1:67:ea:ff:c8:b2. |
|---|
| 61 | Are you sure you want to continue connecting (yes/no)? |
|---|
| 62 | |
|---|
| 63 | Type "yes" and press ENTER. |
|---|
| 64 | |
|---|
| 65 | When prompted with "sysadm@pcN.ws.nsrc.org's password:" enter the password given in class. |
|---|
| 66 | |
|---|
| 67 | That should be it. You are now connected to a terminal session on your machine. To log out you |
|---|
| 68 | can type: |
|---|
| 69 | |
|---|
| 70 | "exit" |
|---|
| 71 | |
|---|
| 72 | and this will end your terminal session. |
|---|