Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Shelane French
Added: Jan 24, 2020 9:45 PM
Views: 100
Tags: no tags
  1. #Remove the original host key using ssh-keygen.
  2.  
  3. #Run the following command to remove the RSA fingerprint for the previous hardware:
  4.  
  5. ssh-keygen -R [hostname]
  6.  
  7. #where [hostname] is the hostname for your previous server.
  8.  
  9. Run `ssh [hostname]` to add hostname back to the known_hosts file with new IP