Remove that the entry from known_hosts using:
ssh-keygen -R *ip_address_or_hostname*
This will remove the problematic IP or hostname from known_hosts file and try to connect again.
Remove that the entry from known_hosts using:
ssh-keygen -R *ip_address_or_hostname*
This will remove the problematic IP or hostname from known_hosts file and try to connect again.
On Mac, add UseKeyChain to ~/.ssh/config
nano ~/.ssh/config
and add the following
Host *
UseKeychain yes
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0744 for '/home/geek/.ssh/id_rsa' are too open. It is recommended that your private key files are NOT accessible by others. This private key will be ignored. bad permissions: ignore key: /home/geek/.ssh/id_rsa
sudo chmod 600 ~/.ssh/id_rsa sudo chmod 600 ~/.ssh/id_rsa.pub
Are you sure you want to continue connecting (yes/no)? yes Failed to add the host to the list of known hosts (/home/geek/.ssh/known_hosts).
sudo chmod 644 ~/.ssh/known_hosts
sudo chmod 755 ~/.ssh
>> ssh-keygen -f ~/.ssh/id_rsa -p
>> Enter old passphrase: >> Key has comment '/home/gsekhar/.ssh/id_castlighthealth_rsa'
>>
Enter new passphrase (empty for no passphrase):
>>
Enter same passphrase again:
>>
Your identification has been saved with the
new passphrase.