Displaying 2 results from an estimated 2 matches for "bsyohqot354adlwgulmmpxrkjk".
2020 Sep 30
4
How to use ssh -i with a key from ssh-agent rather than from a file?
...it and it didn't work for me. :-(
$ git config core.sshcommand
ssh -i ~/.ssh/id_ed25519_github2
$ ls -l ~/.ssh/id*
-rw-r--r-- 1 raf raf 110 Dec 19 2019 /home/raf/.ssh/id_ed25519_github2.pub
$ cat ~/.ssh/id_ed25519_github2.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHrmJ0gYTmZlilDBB/BsyOHqOT354aDLWgULmMPXRkJK user at domain.com
$ ssh-add -L
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHrmJ0gYTmZlilDBB/BsyOHqOT354aDLWgULmMPXRkJK user at domain.com
[...]
$ git pull
Warning: Identity file /home/raf/.ssh/id_ed25519_aps_github not accessible: No such file or directory.
ERROR: Repository not found.
[....
2020 Sep 30
4
How to use ssh -i with a key from ssh-agent rather than from a file?
Hi,
I have a VM with a git repository whose origin is on
github. I have several keys known to github, so I needed
to set git's core.sshcommand config parameter in the
repository to something like this:
ssh -i ~/.ssh/id_ed25519_github2
But it meant that I needed to copy that key to the VM.
The same key is available via my forwarded ssh-agent
connection. Is it possible to tell ssh to use