Interactive Login with SSH, Security and different Clients

From docwiki
Revision as of 14:28, 22 March 2020 by Mond (talk | contribs)
Jump to: navigation, search


Motivation

Direct, interactive login is the easiest way to connect to a remote server. The tool we learn here is SSH which stands for Secure SHell. You will learn what kind of clients are available and what the kind of security SSH even offers.

Interactive Login with SSH

If you have an account on a Linux server and the Linux sever offers SSH access you can login with, e.g.:

$ ssh anna@testbox.example.org

This assumes the username on the remote machine is anna and the remote server has a name testbox.example.org - The first time you connect it will ask you if you trust this machine and will show a cryptographic fingerprint of the public key that the remote machine uses. That fingerprint is stored in a file .ssh/known_hosts and the next time you connect it will know that it is the same machine. If you do not have a host name you can also use the IP address.

If the username on your local machine is the same as on the remote machine, in the case above: anna, then you can omit the username part.

If you do not have a remote maschine you could, for this example also ssh into the same machine where you are currently working. The IP address will be 127.0.0.1 or you could use localhost as your hostname.

What kind of Security does SSH offer?