Skip to content

Instantly share code, notes, and snippets.

@songfei1983
Last active August 29, 2015 14:17
Show Gist options
  • Save songfei1983/8baa2eb3af867ee59b71 to your computer and use it in GitHub Desktop.
Save songfei1983/8baa2eb3af867ee59b71 to your computer and use it in GitHub Desktop.
新しいホストをknown_hostsに追加 ref: http://qiita.com/songfei1983/items/d2f543697e6eb777323c
ssh-keygen -R [hostname]
ssh-keygen -R [ip_address]
ssh-keygen -R [hostname],[ip_address]
ssh-keyscan -H [hostname],[ip_address] >> ~/.ssh/known_hosts
ssh-keyscan -H [ip_address] >> ~/.ssh/known_hosts
ssh-keyscan -H [hostname] >> ~/.ssh/known_hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment