next up previous
Next: Advanced Topics: Public/Private Key Up: Introduction to SSH Versions Previous: Why two versions?

A simple SSH session

To use SSH as a basic replacement for telnet right away, you can simply enter the following:

mbland@defender
/home/student/mbland -> ssh defender
Accepting host defender key without checking.
mbland's password:

As you can see, there is nothing tricky going on here, except that SSH assumes that you are attempting to log into the remote machine with the same username you're using on the local machine. To override this behavior, use the ``-l'' (that's the letter ``ell'') option on the command line, like so:

mbland@defender
/home/student/mbland -> ssh -l jager defender
jager's password:

Notice that once you've used SSH to log into a remote machine, you no longer get a message about checking the host's key (a file on the system which the remote host uses to identify itself to the local SSH client). If the remote host's key were to change after this, a huge warning message will flash up on the screen and wait for your confirmation to continue.



Michael S. Bland
2000-11-22