Closed JayceLau closed 3 years ago
Hello, what command did you use to create the private key?
Actually, SKM just calls ssh-keygen
to create SSH public/private keys.
skm create test -C test
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/jayce/.skm/test/id_rsa.
Your public key has been saved in /Users/jayce/.skm/test/id_rsa.pub.
The key fingerprint is:
SHA256:ciCDxaz7gvDSz3TUsrfleJSX/fOqmkrYnqNnKlRbEcA test
The key's randomart image is:
+---[RSA 3072]----+
| o...... |
| oo E . |
| ..o . . |
| . o.o. |
| . .+oS . o |
|. . ...B o o . |
|.+ o. + +... . |
|o +oo. ++*.. ..|
| . oo.o=*++.....+|
+----[SHA256]-----+
✔ SSH key [test] created!
cd test/
openssl rsa -in ./id_rsa -out id_rsa.pem
unable to load Private Key
4534541996:error:09FFF06C:PEM routines:CRYPTO_internal:no start line:/System/Volumes/Data/SWE/macOS/BuildRoots/e90674e518/Library/Caches/com.apple.xbs/Sources/libressl/libressl-56.60.2/libressl-2.8/crypto/pem/pem_lib.c:684:Expecting: ANY PRIVATE KEY
Private key, which created by skm, can't be transferred to pem format, the error is below:
My command is
openssl rsa -in ./id_rsa -out id_rsa.pem
.