SSH with rsakey PC A¶ openssl genpkey -algorithm RSA -out private_key.pem openssl rsa -pubout -in private_key.pem -out public_key.pub PC B¶ Was this page helpful? Thanks for your feedback! Thanks for your feedback! Help us improve this page by using our feedback form.