How to set up ssh key pair with ubuntu

  1. Create your ssh key on your laptop -> ssh-keygen
  2. Create ~/.ssh/ folder on the server -> mkdir -p ~/.ssh/
  3. Make sure to do this on the server -> “echo public_key_string >> ~/.ssh/authorized_keys”
  4. Copy your pub key to ~/.ssh/authorized_keys on your server
  5. You need to little bit config to this on the server -> sudo nano /etc/ssh/sshd_config
  6. And enable on “PubkeyAuthentication yes” from “#PubkeyAuthentication yes”
  7. Restart the ssh on the server by “sudo systemctl restart ssh”
  8. The last one exit the server and “ssh user@host” again

Try to help to pangdev58@gmail.com

--

--

--

https://www.linkedin.com/in/pang-dev-076692193/

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

A case study of contributing to a Terraform Provider

Everything as Code: Part 3 — Atlassian Bamboo as code

Résultats de recherche d'images pour « infrastructure as code »

stay true to what you believe in, and all the doubters will eventually come asking for help.

Problem Solving Patterns Part 1: Frequency Counters and Why I LOVE THEM

Nix introduction, main concepts and commands

Create Mobile Automation Test Cases Using Katalon Studio’s Recording Utility

And hope I never have to do…

How to Get Started With Computer Science for Free

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store