A local configuration files for ssh where you have all the “shortcuts” you need to contact another computer with openssh server installed. In my example it’s Linux and Windows Servers that I need to manage.
A shortcut could be
to manage node1.pvangsgaard.com
Here is How To setup SSH and config file
You can use powershell prompt or DOS promt, but i will recommend using Hyper Terminal, you can download and install it from https://hyper.is/
if you haven’t used SSH before then generate a key-pair with
It will look like this
Now the ssh-keygen have made a directory containing a ssh-keypair
The directory is in your path and in my case C:\Users\peter\.ssh\
go to the .ssh directory and list content with
cd .ssh dir
now start notepad or any editor and write a config for a server, in this example it’s node1.pvangsgaard.com
Host node1 HostName node1.pvangsgaard.com User root Port 22 IdentityFile c:\users\peter\.ssh\id_rsa
If you have another RSA key that is provided by your company then just alter id_rsa filename to the one that you need also remember to change path and servername 😉
Now save the config file in your ssh dir like C:\Users\peter\.ssh\
It’s very important that the file is named config and NOT config.txt 😉
Now tryout the new config by connecting
Note that is is only working in DOS or Powershell, if you need it in a Linux container in Windows then you have to alter the path and then it will work.
If you use Hyper there is a little bug when exiting the terminal, you need to close all connections and type exit in the last one to close the app.