Skip to main content

Key-Based ssh Login

In this post we will look at how to use ssh key-based login.

[pre class="brush:bash"]
ssh-keygen -t rsa -b 4096

# copy to the server. Then
cp authorized_keys authorized_keys_Backup
cat >> authorized_keys

# if .ssh or authorized_keys is not available,
#follow the following instructions to create them,
# create the .ssh directory:
mkdir ~/.ssh
# set the right permissions:
chmod 700 ~/.ssh
# create the authorized_keys file:
touch ~/.ssh/authorized_keys

# set the right permissions:
chmod 600 ~/.ssh/authorized_keys

cat ~/.ssh/ >> ~/.ssh/authorized_keys[/pre]

Source1, Source2

How to generate a key pair in MobaXterm?

Enter the following command in the MobaXterm terminal
[pre class="brush:bash"]ssh-keygen -t rsa -q -f ~/.ssh/id_rsa[/pre]
This will generate the private and public key pair inside .ssh folder located in your home directory (source).


Popular posts from this blog

Advantages and Disadvantages of Electro-oculography (EOG)

In the previous post we looked at what is EOG? In this post we will look at the advantages and disadvantages of EOG.

How to Convert Excel Charts into High Resolution Images

Microsoft Excel is widely used to generate graphs and to analyse data due to its simple graphical user interface.  Have you ever tried to convert the charts into images? If yes, you might have used "Print Screen" feature to easily convert the charts into images. However most of the scientific journals require the images in high resolution TIFF format. So in this post we will look at how to convert Microsoft Excel Charts/Graphs easily into high resolution images.