How To Automate Connect, Generate And Add An SSH Key To A Server

This is probably the last article you will read about connecting, generating and adding ssh keys to a server.

Let’s write a script that will do it for us.

First let’s generate the ssh key. Open a terminal and put this:

--

--

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