Connecting to Linux Instances Using Key Pairs

Generating a New SSH Key-pair

Linux and OSX Workstations

ssh-keygen -t rsa -f ~/.ssh/my-ssh-key -C [USERNAME]
chmod 400 ~/.ssh/my-ssh-key
cat ~/.ssh/my-ssh-key.pub
ssh-rsa [KEY_VALUE] [USERNAME]
  1. [KEY_VALUE] is the generated public key value.
  2. [USERNAME] is your username.

Connecting Using SSH on Linux or OSX Workstations

ssh -i ~/.ssh/my-ssh-key [USERNAME]@[IP_ADDRESS]

Conclusion

--

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

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

Recommended from Medium

Simulating Post Object Form Upload to OSS in Java

CS371p Fall 2020: Joseph Moyalan

CS373 Spring 2022: Luca Santos

here are some tags

Simple canary releases in AWS: how and why?

Bootstrap and Styling

Deploy your Rust microservices to the world : an end to end approach to modern CI/CD and deployment

CS371g Summer 2021: Kyzer Polzin

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
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

More from Medium

How To Install Docker In Jenkins Container

Learn Docker:Network access (6/6)

CI pipeline template for Python in Gitlab

Docker Introduction