Practical purpose of this demonstration

Establish a connection via SSH, either using a password, or using a pair of encryption keys.

1. Connection with password

To connect to a server with the native Windows 10 client, type:

ssh username@server-address

There are other famous SSH clients as indicated in section Alternatives for SSH clients. But the native Windows 10 client will probably be enough for what you need to do.

When it is the first access you need to inform that you trust the remote computer’s identity by answering yes, as indicated in Figure 1.

image 001
Figure 1. Confirmation on first access to remote computer

By doing this, the public computer’s encryption key is stored in the ~/.ssh/know_hosts file at the local computer.

If this file is deleted or the line containing the remote computer’s public key is removed, then the confirmation message will be displayed again.

Then you enter your password, and that’s it. Connected!

2. Connection with encryption keys

Another form of authentication is to let the target computer know the source computer. In this case we create a pair of encryption keys on the source computer with the command ssh-keygen. Run and press Enter until done, as shown in Figure 2.