Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
sshhost=host1
domain=domain.com
user=root
ssh -oBatchMode=yes -oStrictHostKeyChecking=no $user@$sshhostfakeuser@$sshhost.$domain uptime
ssh -oBatchMode=yes -oStrictHostKeyChecking=no $user@$sshhost uptimefakeuser@$sshhost

Remove Offending Entry 

No Format
sed -i '119d' ~/.ssh/known_hosts
ssh-keygen -f "~/.ssh/known_hosts" -R <hostname>