Difference between revisions of "Interactive Login with SSH, Security and different Clients"

From docwiki
Jump to: navigation, search
(Created page with "Category:LinuxLV Category:SSH == Motivation == Direct, interactive login is the easiest way to connect to a remote server. You will learn what kind of clients are av...")
 
Line 13: Line 13:
 
</pre>
 
</pre>
   
This assumes the username on the remote maschine is anna and the remote server has a name 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.

Revision as of 14:25, 22 March 2020


Motivation

Direct, interactive login is the easiest way to connect to a remote server. 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.