~franz/f-a.nz

ref: 286b755957d4bd136442f27a4c88b73c06f70ecf f-a.nz/_dev/.ssh-public-key-authentication.md -rw-r--r-- 597 bytes
286b7559Franz Geffke added new git link 2 years ago

title: SSH Public Key Authentication version: os:

  • macOS
  • Linux source: date: 2017-01-01 00:00:00 +0200 categories: dev

https://unix.stackexchange.com/questions/26924/how-do-i-convert-a-ssh-keygen-public-key-into-a-format-that-openssl-pem-read-bio

dsssss

Macberry:.ssh franz$ ssh-keygen -t rsa -b 4096 -C "franzos" Generating public/private rsa key pair. Enter file in which to save the key (/Users/franz/.ssh/id_rsa): Enter passphrase (empty for no passphrase):

Copy it to server ssh-copy-id serverpilot@x.x.x.x

Convert public key to PKCS#1 ssh-keygen -f key.pub -e -m pem