Skip to content

Instantly share code, notes, and snippets.

@jamestrandung
Last active December 15, 2015 10:09
Show Gist options
  • Select an option

  • Save jamestrandung/5244058 to your computer and use it in GitHub Desktop.

Select an option

Save jamestrandung/5244058 to your computer and use it in GitHub Desktop.
Command line
<JAVA_HOME>\bin\keytool -genkey -alias s1as -keyalg RSA -keypass newpass -storepass newpass -keystore keystore.jks
<JAVA_HOME>\bin\keytool -export -alias s1as -storepass newpass -file server.cer -keystore keystore.jks
<JAVA_HOME>\bin\keytool -import -v -trustcacerts -alias s1as -file server.cer -keystore cacerts.jks -keypass newpass -storepass newpass
Offending key in /home/hostname/.ssh/known_hosts: 10
<JAVA_HOME>\bin\SSH yourserver.com
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
c7:35:85:d3:e6:74:34:b8:5t:8f:e1:ae:54:dc:44:22.
Please contact your system administrator.
Add correct host key in /home/hostname/.ssh/known_hosts to get rid of this message.
Offending key in /home/hostname/.ssh/known_hosts: 10
RSA host key for 191.168.1.67 has changed and you have requested strict checking.
Host key verification failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment