Thursday, December 12, 2013

converting ppk to pem in Ubuntu Linux

We have seen how to convert pem to ppk and how to convert ppk tp pem on windows systems. But how to do this on Linux? In this post we will see how this can be done in Linux command line. We will be using Ubuntu Linux in this example. We will be using the tool puttygen to do this.

Installing puttygen:
sudo apt-get install putty-tools

Converting pem to ppk
puttygen key.pem -o key.ppk

Converting ppk to pem
puttygen key.ppk -O private-openssh -o key.pem




Wednesday, December 11, 2013

Screen command in linux

I have wrote about screen command long back. But I'm writing it again because last few days I was fighting with network connectivity issues. screen is your best friend when you have a bad connection.

Why screen?
Suppose you are running a bash script. What if you lost connection in between? script fails.

How to use?
You can create a screen and run the script inside the screen. You can detach and attach to the  screen later whenever you want. Even if the connection fails between your remote server and laptop; the script will execute safe inside screen.