Sample Header Ad - 728x90

Getting error when i load SSH key "Load key "/root/.ssh/id_ed25519": error in libcrypto"

2 votes
2 answers
5748 views
Long story short I have an SSH key pair that I am copying to a new machine from a shared drive whenever the machine starts but when I load in the keys I keep getting an error. There is no difference in operating system between the machine that created the keys and the one that is using them (unsuccessfully). Load key "/root/.ssh/id_ed25519": error in libcrypto However when I then create a new SSH keypair it works perfectly fine. Is there some restrictions about copying keys or are they bound to the machine it was created on? A bit more background is that I am using this to read from my private Github repo, cp [filepath to ssh pub key on shared drive] "/root/.ssh/id_ed25519.pub" cp [filepath to ssh private key on shared drive] "/root/.ssh/id_ed25519" ssh-keyscan -t ed25519 github.com >> ~/.ssh/known_hosts chmod go-rwx /root/.ssh/id_ed25519 git clone --filter=blob:none --no-checkout git@github.com:account/repo.git I have no idea what is going on, and when i print the contents of the two key pairs they are identical, but it seems like the moment a new machine is booted it stops working - any help here would be much appreciated.
Asked by no nein (121 rep)
Mar 14, 2024, 06:32 PM
Last activity: Jan 8, 2025, 11:19 PM