×

Blog

How to generate SSH key and add to the ssh agent?

As we know all time we access the ssh of any system by using the username and password so we can avoid this by adding the ssh to agent system.if you don’t want to re enter the password of ssh then add your key to the ssh agent.

Step1: Open ssh Gt bash.

Step2: Generating new ssh key.

ssh-keygen -t rsa -b 4096 -C “[email protected]
it will create the ssh key.

Step 3: When you’re prompted to “Enter a file in which to save the key,” press Enter. This accepts the default file location.

Enter a file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]

Step 4: At the prompt, type a secure password.

Enter passphrase (empty for no passphrase): [Type a passphrase]
Enter same passphrase again: [Type passphrase again]

Adding your SSH key key to ssh-agent:

Before adding a new SSH key to the ssh-agent to manage your keys, you should have checked for existing SSH keys and generated a new SSH key.

Ensure the ssh-agent is running:

The ssh-agent should be running.

If you are using another terminal prompt you can use the “Auto-launching the ssh-agent” instructions in “Working with SSH key passphrases”, or start it manually:

# start the ssh-agent in the background

eval $(ssh-agent -s)
Agent pid 59566

Add your SSH key to the ssh-agent. If you used an existing SSH key rather than generating a new SSH key, you’ll need to replace id_rsa in the command with the name of your existing private key file.

$ ssh-add ~/.ssh/id_rsa

How to Start/Stop/Reset IIS in Windows vps 2008 r2 or How to solve “HTTP Error 404 – File or Directory not found” error

We can easily Start/Stop/Reset IIS in Windows vps and also get solve “HTTP Error 404 – File or Directory not found” error by following below steps.
1 ) Login in your Window Server with Proper Login id and Password .
2 ) Open Command promt with Run as Administrator , its shown below .

 

windows vps

 

3 ) Once you open Command promt with Run as Administrator , it will show like below screen. Just type command
a ) iisreset /start : If you want to start IIS
b ) iisreset /stop : If you want to stop IIS
c ) iisreset /reset : If you want to restart IIS , please see in below screen.

 

Windows vps

 

windows vps

 

Windows vps

 

4 ) With the help of above setp we can solve “HTTP Error 404 – File or Directory not found” error.
5 ) If still you are facing issue , please do one last step for perticular website. Go to server IIS >> sites , you will see your domain.Please see below screen for exmaple if domain is abc.com then just follow below step.
Click on your domain which is present in your left side , and just click Restart . It shown inm below screen.Your website “HTTP Error 404 – File or Directory not found” error will solved.

 

Windows vps