`error: Load key "id_ed25519": error in libcrypto` when git clone with ssh / flake input with ssh
Closed this issue · 1 comments
I want to access my private repo as flake input.
This is my setup:
I have an forgejo instance
Say the IP is 192.168.1.2, an account named git
and a repo something
.
The public key ~/.ssh/id_ed25519.pub
is properly added into the forgejo instance via web UI for access of all the repo under account git
using ssh.
I input this in ~/.ssh/config
Host forgejo
HostName 192.168.1.2
IdentityFile ~/.ssh/id_ed25519
Port 22
User forgejo
I put this in flake.nix
:
inputs.something.url = "git+ssh://forgejo/git/something";
It shows the error error: Load key "id_ed25519": error in libcrypto
when I run nix-on-droid switch --flake /path/to/flake
Same when I run git clone "ssh://forgejo/git/something"
I have no issue with this setup on my other NixOS machine.
It only affect git, ssh remote shell access to other machine is fine.
How can I debug this? thansk.
I put the public key to IdentityFile
in ~/.ssh/config
, should be private key.