Geek Logbook

Tech sea log book

SSH: A Brave new world

When you make your first steps as a developer, you realize that one of the first activities you have to do when your code is ready is to deploy it. 

In that case, generally, the senior dev or someone of the dev-ops team says something like:

  • “Ok, here you have this server. You can connect it with ssh.”

After that, you ask yourself: 

  • “Ok, what is SSH, for god’s sake?”. 

This irrelevant question for people who work on the internet or have internet lectures at the university is crucial for those who learn by doing or reading and studying unexpectedly. So reading the book SSH: The Secure Shell, I’ll point out the parts that help me understand “What the heck with SSH.” 

What is the purpose of ssh? 

you might want to copy files between computers over a network, log into one account remotely from another, or transmit commands to a remote computer for execution. (…) SSH, the Secure Shell, is a popular, powerful, software-based approach to network security. Whenever a computer sends data to the network, SSH automatically encrypts it. When the data reaches its intended recipient, SSH automatically decrypts (unscrambles) it. Chapter 1. Introduction to SSH

Have I SSH on my computer?

You can use SSH from Windows since 2018 through open SSH, which is installed by default. As you can read in this documentation:  OpenSSH in Windows. 

In your App Installation, you can see it.

Essential use: create private and Public Keys.

Once you are sure that you have SSH in your computer one of the first task someone required you is to create a key pair. This its possible to make with this command:

ssh-keygen

I’ll generate the key pair in your user folder. And they are going a two file output. Inside this file you should find something like you can see in the screenshots below:

Public Key (The key you should share)

Private Key (The key you need to keep)

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *.