Home - Kushagram/wireless-testbed GitHub Wiki

Some of the problems that one might encounter while dealing with the ssh keys for the first time:

  1. If suppose you have forgotten the passphrase for your downloaded key and you have created a new one by deleting an already existing one, there is a high chance of mismatch between the public half of the key and its corresponding private part.

Solution: Instead of downloading a new key from the GENI portal,I generated a new key from my host computer itself.It can be done by going through the following commands on git bash: 1) $ ssh-keygen -t rsa -b 4096 -C "[email protected]" This creates a new ssh key, using the provided email as a label: Generating public/private rsa key pair. 2) When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location. 3) At the prompt, type a secure passphrase.

2)Now to check whether both the public and private keys were matched I entered the following two commands: 1) ssh-keygen -y -f /PATH/TO/PRIVATE/KEY This would prompt you to enter the passphrase (if one exists).If the passphrase is entered correctly it would display the public half of the key. 2) cat /PATH/TO/PUBLIC/KEY If the contents of this public key matches the display in the previous point we are ready to go forward
and ssh into the reserved resources.

Note:The public half of your key pair should be located in the same directory as the private half, and should have the same name, but with a .pub at the end.

After following above procedure, when I tried to ssh at my reserved time using the command: ssh -i ~/.ssh/id_rsa [email protected] However the terminal shows the message: ssh_exchange_identification: Connection closed by remote host When I tried to do the same thing after an interval this time it showed Access denied(public key)

     I am not able to understand why am I getting this output?
     Also is it that the git bash does not support "omf" command?
     When I tried to do the same thing after an interval this time it showed Access denied(public key)