How to manage remote Linux access from Windows machine the new way.

avatar
(Edited)

Why the "new way"?

As I have written in my previous article about SSH from Windows before Windows 10 (build 1809) there was no nice and build a way to access SSH.

The assumptions

I do assume the basic knowledge of how to operate the Command line (also called CLI).

What are keys, a very simplified explanation.

First, let's try to explain what is the key. The key is pair of very long numbers which are related to each other. The idea works like that. The simpler number also called the public key, is shared with everyone. The public key can be used in two ways. The first is to encrypt the message, such a message can only be decrypted by the private key( the second more complex one). The second way is to decrypt the message, encrypted with the private key.

Both keys can be used in various ways, but the basic idea is that owner of the private key can confirm the identity of himself/herself by encrypting/decrypting messages.

Generate the key

In the terminal please run the command:

ssh-keygen

The command will kick-start start key generation process.

image.png

The ssh-keygen will create two files, example_key and example_key.pub. The latter one is the public key, this file has to be shared with any server you would like to login to later on. The first one is the private key, and as such should never be shared with anyone. Additional pleas always generate the passphrase for a key as the additional line of protection.

image.png

Connect to a machine

As SSH is already installed you just need to start a terminal and you can use the command:

shh -i "C:\Users\<your user name>\.ssh\<private key generated by openssh>" root@<host or IP>

Save connection for later

The easier way for managing connection I have found and am using now is to create the cmd files inside the path-enabled folder so the command can be executed for any place inside the terminal.

CD $HOME
MKDIR bin
'@echo off
ssh -i "C:\Users\<your user name>\.ssh\<private key generated by openssh>" root@<host or IP>' > ssh-test.cmd

After that, you can use the ssh-test from any path in the terminal.

Posted with STEMGeeks



0
0
0.000
7 comments
avatar

Congratulations @assassyn! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You distributed more than 10000 upvotes.
Your next target is to reach 11000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Check out our last posts:

The Hive Gamification Proposal
0
0
0.000
avatar
(Edited)

!ALIVE | !BBH | !PGM

0
0
0.000
avatar

Sent 0.1 PGM - 0.1 LVL- 1 STARBITS - 0.05 DEC - 1 SBT - 0.1 THG - 0.000001 SQM - 0.1 BUDS - 0.01 WOO tokens

remaining commands 4

BUY AND STAKE THE PGM TO SEND A LOT OF TOKENS!

The tokens that the command sends are: 0.1 PGM-0.1 LVL-0.1 THGAMING-0.05 DEC-15 SBT-1 STARBITS-[0.00000001 BTC (SWAP.BTC) only if you have 2500 PGM in stake or more ]

5000 PGM IN STAKE = 2x rewards!

image.png
Discord image.png

Support the curation account @ pgm-curator with a delegation 10 HP - 50 HP - 100 HP - 500 HP - 1000 HP

Get potential votes from @ pgm-curator by paying in PGM, here is a guide

I'm a bot, if you want a hand ask @ zottone444


0
0
0.000
avatar

Sent 0.1 PGM - 0.1 LVL- 1 STARBITS - 0.05 DEC - 1 SBT - 0.1 THG - 0.000001 SQM - 0.1 BUDS - 0.01 WOO tokens

remaining commands 3

BUY AND STAKE THE PGM TO SEND A LOT OF TOKENS!

The tokens that the command sends are: 0.1 PGM-0.1 LVL-0.1 THGAMING-0.05 DEC-15 SBT-1 STARBITS-[0.00000001 BTC (SWAP.BTC) only if you have 2500 PGM in stake or more ]

5000 PGM IN STAKE = 2x rewards!

image.png
Discord image.png

Support the curation account @ pgm-curator with a delegation 10 HP - 50 HP - 100 HP - 500 HP - 1000 HP

Get potential votes from @ pgm-curator by paying in PGM, here is a guide

I'm a bot, if you want a hand ask @ zottone444


0
0
0.000
avatar

@assassyn! Your Content Is Awesome so I just sent 1 $BBH (Bitcoin Backed Hive) to your account on behalf of @vocup. (6/20)

0
0
0.000