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

Extra-Strength Methods — Chapter 5

【BFH】The change of Producer

[Cosmos] Monitoring Dashboard with Prometheus

Top 5 Reasons to Choose Xamarin for Cross-Platform Development

Xamarin for Cross-Platform Development

HOW ACCURATE ARE INTERNET SPEED TESTS

Manage Customer Relations with SuiteCRM on Alibaba Cloud

Deploying Your Portfolio with Firebase

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

Installing Docker And Serving An Application From Raspberry Pi Server

Execute programs automatically on startup in Linux.

Deploying Traefik Edge-Router Reverse Proxy to Docker Swarm

Traefik container running

Let’s Install an AdBlocker with PiHole