First time user here, I have been trying to setup my backup using
duplicacy -e -key test_key testing backup_to_here
and, after inputting my desired password, I get the unrecognized public key
message.
I have tried searching for a solution to this but haven’t found anything useful to me. Mainly because I don’t have openssl and don’t know how to install it (on their site, its talking about building it or compiling it or something like that and that’s a little overwhelming for me as they say I require programs I don’t have installed either). Just feels like a lot of hoops I have to jump through when there could be an easier solution.
I generated my keys using
ssh-keygen -t rsa -b 4096 -f test_key -C test -m PEM
and, after entering my super secret passphrase of “password”, it tells me
Your identification has been saved in test_key.
Your public key has been saved in test_key.pub.
The key fingerprint is:
SHA256:CLBGYZ8dJ3B7LZ1tjo4LKYPbdaYQ8Sngt8n5VxqFS3g test
The key's randomart image is:
+---[RSA 4096]----+
| =...+ . |
| o + + = o o |
| + = o.o.+ o |
| o . +.+E..+ |
| . + +oSo. . |
| + * .oo. |
| . O + ++. |
| o * =o. |
| . . o.. |
+----[SHA256]-----+
If I open the private key, it has the proper “begin/end rsa key” entries I’ve read about.
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,D667AE5843D6435C0FE25A6E38F7E542
<code_goes_here>
-----END RSA PRIVATE KEY-----
The public key does not. When I open it, it contains
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDAy+KFrSU+kogbZWQ6L/F+8UcCUJTiF4gmbWFvpIR1JW24MUXQpxuq8gudoCHQMMHjraK+9I7Lru7cl+tkjlN/8eut/jXQV8/i6l4sk0InqeU9JExMfoUeYogfGPRN/Zw+c+PIif8leMXd75D6QO4jBPLUpyMVL2BP635eY+8mncTO2ZOvQnIiiJevq9azs1mz3LSmoUsuCglSQ5WqUrDSc0XoEAbSGx5k/p0K7EQuQbTRa6fl9HhRJJ6dSkN0keyPOizrpbmMIJPkuO0WGxvVp3ZU8KYquez9+95/dMXav22C4xDJX5Ddizcm5xjFOYzHSzvp4ak5ZImjvQllbZWOC3LaT/ilRzcsffk3ZgB08c6K/MP2qH89lQPZ0oouaONFVl8JhOWcjZzbNjzmT46lRT2MOqPtNPIcdHp4luLR6u/Jz1encmFfFrRBbxlgX52bSLH45/ZcJ2M1RUfH5Yr8R8Fl8zCQJJwcSqXpktzaNVJJu7PD/DtlF0M1LDUiuwGYeLxv6ogDTS1a9qBSXiOYEb40cZNcvIfW4rPtUaZfh6R5wteaRNeAxCreLbgDSl/EwClkead/GBlzxaqcVP2A4JO4jz+HdWJ2KsZ3bQWT9q5DLMSCXDl5VMrfPb5k27OXDLaTi1Js+ZSMSq7MtpDpmv5on11UFeufHSndzE61yw== test
all on one line.
How can I get the proper public key format using SSH-Keygen? Or can someone help me figure out how to get OpenSSL installed? I would really rather not have to install anything extra though (some site was saying to install some chocolate program to get OpenSSL).
I will come back and edit this with more exact details once I get to my PC (I’m on my phone right now).
EDIT I have edited the post with the correct info and formatting. Is this the correct way to do it?
ssh-keygen -e -f test_key -m PEM | Out-File test_key.pem
test_key.pem contains:
-----BEGIN RSA PUBLIC KEY-----
MIICCgKCAgEAwMviha0lPpKIG2VkOi/xfvFHAlCU4heIJm1hb6SEdSVtuDFF0Kcb
qvILnaAh0DDB462ivvSOy67u3JfrZI5Tf/Hrrf410FfP4upeLJNCJ6nlPSRMTH6F
HmKIHxj0Tf2cPnPjyIn/JXjF3e+Q+kDuIwTy1KcjFS9gT+t+XmPvJp3EztmTr0Jy
IoiXr6vWs7NZs9y0pqFLLgoJUkOVqlKw0nNF6BAG0hseZP6dCuxELkG00Wun5fR4
USSenUpDdJHsjzos66W5jCCT5LjtFhsb1ad2VPCmKrns/fvef3TF2r9tguMQyV+Q
3Ys3JucYxTmMx0s76eGpOWSJo70JZW2Vjgty2k/4pUc3LH35N2YAdPHOivzD9qh/
PZUD2dKKLmjjRVZfCYTlnI2c2zY85k+OpUU9jDqj7TTyHHR6eJbi0ervyc9Xp3Jh
Xxa0QW8ZYF+dm0ix+Of2XCdjNUVHx+WK/EfBZfMwkCScHEql6ZLc2jVSSbuzw/w7
ZRdDNSw1IrsBmHi8b+qIA00tWvagUl4jmBG+NHGTXLyH1uKz7VGmX4ekecLXmkTX
gMQq3i24A0pfxMApZHmnfxgZc8WqnFT9gOCTuI8/h3VidirGd20Fk/auQyzEglw5
eVTK3z2+ZNuzlwy2k4tSbPmUjEquzLaQ6Zr+aJ9dVBXrnx0p3cxOtcsCAwEAAQ==
-----END RSA PUBLIC KEY-----