Some notes about reading SSH-Keys in Erlang and using them Converting SSH-Key to PEM $ ssh-keygen -e -m pem -f .ssh/MYKEY.pub > /tmp/MYKEY.pub.pem Reading public Key in Erlang {ok, C} = file:read_file("/tmp/cloud.pub.pem"). public_key:pem_decode(C).