I found my issue the public key was not correct.
I manually checked it with the following ssh command. would be nice if the error gave me some sort of info.
ssh-keygen -l -f <filename.pub>
which gave me.
<filename.pub> is not a public key file.
Still would be nice to know which cryptographic are supported.