Login with an SSH Private key in Linux or Mac Terminal

Login with an SSH Private key in Linux or Mac Terminal

First you need following things :

  • generate private key from your hosting site ( i used godaddy cpanel )
  • username of cpanel
  • password of cpanel
  • finally passphrase which you have given when creating private key

Download your private key from your hosting site to your desktop , i have download my key from godaddy cpanel , you can find a file named ” newssh ” which is a private ssh key * name of private may vary

i have renamed the file ” newssh ” to ” newssh.txt ” , i have just changed the file extension , so that it can readable by terminal or you can read it using any text based editor like vim , nano or gedit

now you need to move this file from Desktop to your Home Directory , because when you open your directory it will mount home as the default directory

now you can see the ” newssh.txt ” file is listed in the terminal home directory

Run the following command to change the file permissions to 600 to secure the key. You can also set them to 400. *This step is required:

 

chmod 600 newssh.txt

 

To login you need to type the following details in the terminal , which loads the key in file newssh.txt and logs in as user ,to IP your server ip

 

ssh -i newssh.txt user@yourserverip

 

then press Enter key , now it will ask you for the passphrase which you have given at the time for private key creation , type the passphrase  , Press Enter

 

 

Congratulation you have successfully login to your server using ssh

 

 

 

How to create Vhd from Physical Disk

How to create Vhd from Physical Disk

Its very easy to create vhd from physical disk,
First you need to download Disk2vhd utility from this url https://technet.microsoft.com/en-us/sysinternals/ee656415.aspx

Then run it as Administrator

Now you can see all drives which is associated with the hdd , select drive which you want to convert

to save it give vhd file name and location , then click create

after process complete you can find vhd file in the given exported path

now you can attach this vhd file to any hypervisor or windows diskmanager to access files in it , if it is bootable you can boot that inside virtualbox or vmware workstation

Pin It on Pinterest