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.
By doing this, the public computer’s encryption key is stored in the 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.
If you run the |
As also indicated in Figure 2, a pair of files are generated. We are interested in this demonstration in the public file id_rsa.pub
. The private id_rsa
file must be kept safe and never shared.
Then, we send the contents of the file id_rsa.pub
, as exemplified in Figure 3, to the destination computer, the server. This content must be added to the ~/.ssh/authorized_keys
file. If it does not exist, it must be created.
As shown in Figure 3, the content of the public encryption key is short text that you can copy using the mouse and the combination of But if you are without a mouse, you may prefer to copy the file directly with the Command on the source computer:
Command on the destination computer:
|
From now on, both your computer knows the server and the server knows your computer. Each computer has the public key of the other.
Make a new connection attempt and you’re done. Connected using keys without having to enter authentication data.
3. Alternatives for SSH clients
Name | License | Download |
---|---|---|
PuTTY |
free; open-source |
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html |
SuperPutty |
free; open-source; based on PuTTY |
|
PuTTY Tray |
free; open-source; based on PuTTY |
|
KiTTY |
free; open-source; based on PuTTY |
|
MobaXterm |
free; paid Pro version available |
|
SmarTTY |
free |
|
Dameware SSH client |
free; paid options available |
|
mRemoteNG |
free; open-source |
|
Terminals |
free; open-source |
|
Secure Shell App |
free; Chrome Addon |
https://chrome.google.com/webstore/detail/pnhechapfaindjhompbnflcldabbghjo |
4. Video demonstration
Hasta la vista.