Skip to content

Instantly share code, notes, and snippets.

@tamakiii
Last active April 20, 2018 07:02
Show Gist options
  • Select an option

  • Save tamakiii/bb9e0840f736c0bd7007cb5121f1d265 to your computer and use it in GitHub Desktop.

Select an option

Save tamakiii/bb9e0840f736c0bd7007cb5121f1d265 to your computer and use it in GitHub Desktop.
MacOS memo
# Check what MacOS error means
# @link https://discussions.apple.com/thread/7705551
security error -67062
# grep | less with color
grep -Ri --color=always ... | less -R
# NOTE: This seems to be not work well
# # Remove ec2 rows from ~/.ssh/known_hosts
# # (Because of `ECDSA host key for example.com has changed and you have requested strict checking.`)
# cat ~/.ssh/known_hosts | sed -e '/ec2-.*.compute.amazonaws.com/d' > ~/.ssh/known_hosts
#
# # You can check sed result with following
# cat ~/.ssh/known_hosts | sed -e '/ec2-.*.compute.amazonaws.com/d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment