Tag Archives: Windows 10

SSH config files – Windows DOS or Powershell prompt

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

ssh node1

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

ssh-keygen on windows (Hyper Terminal)

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\

ssh key and config directory in windows path

go to the .ssh directory and list content with

cd .ssh
ssh directory content

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
ssh config file

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\

save config file

It’s very important that the file is named config and NOT config.txt 😉

Now tryout the new config by connecting

ssh node1

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.

Edit your hostfile the easy way on Windows 10

If you are a Windows User/Developer and often need to alter your hostfile to hit sites on local ip numbers then here is a tool that make it easier to manage it.

You can cut, copy, paste, duplicate, enable, disable and move one or more entries at a time, disable the whole hostfile and some other stuff.

screenshot of hostfileeditor

Host File Editor is free and open source, it can be downloaded from https://hostsfileeditor.com/

Linux | How to get Windows 10 License key from BIOS

If you have installed Linux on your laptop but wan’t to have a Windows VM in virtualbox then chances are that you need a serial number for windows 10.

Normally Windows read the embedded key that are hardcodet into the BIOS of the laptop and Windows in a virtual instance will not be able to read other than the vm’s virtual BIOS so you will need to type one in yourself.

With this command you can extract the serial number:

sudo hexdump -s 56 -e '"WIN key: " /29 "%s\n"' /sys/firmware/acpi/tables/MSDM