high sierra upgrade breaks ssh keys usage
Before upgrading I could use id_rsa ssh keys without problems. As soon as I upgraded i cannot get my key to work anymore as it complaints about the format.
Load key "/Users/username/.ssh/id_rsa.pub": invalid format
I have read instructions at http://rosslawley.co.uk/key_load_public/
and
So i have regenerated the pub key from my private key
mv ~/.ssh/id_rsa.pub ~/.ssh/id_rsa.pub_old && ssh-keygen -f ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub && chmod 600 ~/.ssh/id_rsa.pub
I am still getting the invalid format error. From the article above i read that mac os now also forces 2048 SHA256 so i checked this
$ ssh-keygen -l -f ~/.ssh/id_rsa.pub
2048 SHA256:qESRzqt554JG9vC7eZAQ/ybEe1jReep9vJl7JkwW+D4 no comment (RSA)
and indeed my key is already in this format as you can see above. How do i fix this? Thanks High Sierra :/
MacBook Air, macOS High Sierra (10.13.1)