Last active
April 20, 2018 07:02
-
-
Save tamakiii/bb9e0840f736c0bd7007cb5121f1d265 to your computer and use it in GitHub Desktop.
MacOS memo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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