Skip to Content

About: kvn

Recent Posts by kvn:

Install and configure SFTP in windows server 2012 R2

Written on August 27, 2019 at 7:41 AM, by

SFTP uses SSH protocol, so first we have to install windows version of openssh the server. Luckily we get the precompiled version of it, so we just have to unzip the contents to a folder. Please note that this installation should be used only in a non-prod environment. Download link : (I find that […]

Useful screen commands in Linux

Written on June 25, 2019 at 4:32 AM, by

Common screen commands that we can use are: Starting Named Session: screen -S session_name Detach from screen session without killing that session: Ctrl+a d Reattaching a screen session: screen -r (works if only one session is present) List all existing screen sessions: screen -ls If there are more than one screen session, we should mention […]

Installing multiple npm versions in linux

Written on May 6, 2019 at 6:35 AM, by

To install multiple npm versions and switch between them, you should use Node Version Manager (nvm) nvm can be installed by the below commands for a particular user where the commands are run: curl -o- | bash After successful completion, if you want to install a specific Node Js version use the below command: […]

Simple command to generate a random password in linux terminal

Written on April 28, 2019 at 12:51 AM, by

We can use the below command to generate a random alpha-numeric strong password from a linux terminal (bash/sh) < /dev/urandom tr -dc A-Za-z0-9 | head -c14; echo -c  –> specifies the length of the random string generated.

OpenSSL commands to extract private key and cert from pfx/p12 file

Written on February 26, 2018 at 8:55 AM, by

Export the private key file from the pfx file: #openssl pkcs12 -in filename.pfx -nocerts -out key.pem Remove the passphrase from the private key: #openssl rsa -in key.pem -out server.key Export the certificate file from the pfx file: #openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem