Skip to main content

Questions tagged [ssh-agent]

SSH-agent is an utility which offers a secure way of storing the passphrase of the private key used in SSH connections

0 votes
0 answers
57 views

I surprisingly noticed that the Windows ssh-agent keeps the loaded ssh keys into the registry in HKEY_USERS\$SID\Software\OpenSSH\Agent\Keys\ (where $SID = (Get-ADUser -Identity $env:USERNAME).SID....
SebMa's user avatar
  • 2,111
2 votes
0 answers
272 views

I want to be able to use my ssh-agent running inside WSL distribution when connecting to a remote server via VS Code. Below is my setup: Use keychain to run ssh-agent in the terminal and add my ...
Llyod's user avatar
  • 21
2 votes
0 answers
93 views

I migrated to a new computer along with my SSH keys. I have installed keychain, set it up correctly to load the keys. However, now graphical KDE apps ask for password (e.g. for Git) and do not respect ...
dusoft's user avatar
  • 181
2 votes
0 answers
1k views

Please note: solutions involving either disabling or modifying the inbuilt ssh-agent are unlikely to work. I've seen numerous people suggest this is due to recent changes in MacOS (I'm on 15.3), but ...
Philip Couling's user avatar
2 votes
0 answers
279 views

I have been using keychain in fish shell to add ssh key for git for a long time. I recently upgraded to Ubuntu 24.10 and now it stopped working. Whenever I do a git command that require auth it will ...
Olav Nybø's user avatar
1 vote
1 answer
612 views

I am trying to call rsync from cmd using "wsl rsync" however it always asks for my ssh key password. How can I use the running agent within wsl instead of needing to type my password every ...
craftycamper's user avatar
2 votes
1 answer
315 views

We're converting our ssh host keys to certificate-signed keys. I wanted to write a script that would use ssh-keyscan to grab all the public keys, then sign them all, and then use ansible to push the ...
thomasafine's user avatar
1 vote
0 answers
132 views

Why does FileZilla start its own ssh-agent process? When I open my terminal, an ssh-agent gets created with socket location /var/folders/sm/4bt9kz951dg4s5kq1jwy57tc0000gn/T//ssh-nWola5Puaw6o/agent....
kataba's user avatar
  • 11
3 votes
1 answer
4k views

i have windows as the host, working with devcontainer without wsl, created ssh key with custom name, let say id_github. and managed to set ssh-agent auto run, and can use git fetch with ssh key with ...
Asule's user avatar
  • 31
10 votes
3 answers
39k views

OS: Windows 11 Version 10.0.22621 Build 22621 WSL version: 1.2.5.0 (WSL 2) Linux distro: Ubuntu 22.04.2 LTS I run WSL2 on Windows 11 in a Windows Terminal window, and I often connect to a remote ...
DeltaIV's user avatar
  • 517
0 votes
1 answer
971 views

Locally keys made available by ssh agent can be listed using ssh-add -L. When connected to a remote machine through ssh, is there a way to list keys made available through ssh agent from the local ...
czerny's user avatar
  • 664
4 votes
1 answer
14k views

I'd like to run ssh-agent as a system service, so I have one global ssh-agent running that is accessible from all shells and GUI programs. On Linux I followed these instructions to run ssh-agent as a ...
rcorre's user avatar
  • 276
3 votes
2 answers
4k views

Client: Arch based distro OpenSSH package version: 9.3p1-2 SSH-Agent started with ssh-agent -c in fish shell Key generated with: ssh-keygen -t ed25519-sk -f ~/.ssh/servers_ed25519_sk -O verify-...
func0der's user avatar
  • 181
5 votes
5 answers
3k views

I am facing the issue that my running ssh-agent is not remembering my private key passphrase. It keeps prompting to enter it, each time I open an SSH session. I cannot figure out why and hope somebody ...
straumli's user avatar
1 vote
0 answers
204 views

When I type the command $eval "$(ssh-agent -s)" to start ssh and be able to register my keys I get the following error: 1 [main] ssh-agent 437 dofork: child -1 - forked process 628 died ...
Janio Junior's user avatar
1 vote
0 answers
2k views

I've got an issue where ssh-agent does not start automatically on login. I have tried writing a service, configuring a systemd autostart script and a bunch of other things. Another thing I've noticed, ...
ThatGuy's user avatar
  • 111
0 votes
1 answer
1k views

I added the passphrase of my ssh to the ssh-agent 4 months ago (i followed a random superuser.com question to do so) Since this, I restarted my laptop and so on but I have never been asked to enter my ...
Makubu's user avatar
  • 3
0 votes
1 answer
2k views

I have some homepages in a git repository each. They are built by Jekyll. When I change something, I use git's pre-push hook to let Jekyll build the page and sync it with my HTTP server via rsync. ...
Tobias Leupold's user avatar
2 votes
2 answers
1k views

I migrated my data from my old mac to a new machine. This copied the .ssh directory, so ssh-add -L showed my old identity. I decided to remove that using ssh-add -D, then created a new identity using ...
rje's user avatar
  • 161
0 votes
1 answer
3k views

I am using Windows 10 v20H2, with OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2. The ssh-agent service is running, but I cannot get ssh-add to do anything productive. I did initially add a key, which ...
James's user avatar
  • 191
3 votes
1 answer
730 views

Context I have multiple SSH keypairs. Currently I handle that by having a collection of keys in ~/.ssh (password-protected of course), and in ~/.ssh/config I have Host sections with the right ...
Ben's user avatar
  • 188
3 votes
1 answer
4k views

I'm trying to pull to a git repo (with SSH remote url) on a remote server. On my home PC I have an SSH agent running: PS user@PC> ssh-add -L ssh-ed25519 ...
Mate de Vita's user avatar
3 votes
0 answers
5k views

Same ask as ssh agent forwarding on Windows 10, but on Windows 11. When I ssh from my Linux client with AgentForwarding enabled into a Windows 11 host, I cannot access the client keys on the host: C:\...
xpt's user avatar
  • 9,545
0 votes
1 answer
3k views

I used to execute eval $(ssh-agent -s) from git bash. It would give me a message and all was fine. Today, it's no longer outputting anything and a ps -ef | grep ssh yields no results. It's like ssh-...
RobHay's user avatar
  • 1
0 votes
1 answer
2k views

I noticed that the Github instructions for adding an ssh key to your account say that you need to add the key to both your ~/.ssh/config file AND to the ssh agent with ssh-add https://docs.github.com/...
rasen58's user avatar
  • 173
2 votes
1 answer
12k views

It is known that cron and ssh-agent do not communicate and hence ssh commands cannot be trivially run under cron. There are solutions involving keychain etc that make it possible to do this. However ...
Durai Arasan's user avatar
2 votes
1 answer
2k views

I have an RSA SSH key with a passphrase on Windows 11, with OpenSSH. I tried to add it to the agent: C:\code> ssh-add -k C:\Users\user\.ssh\id_rsa Enter passphrase for C:\Users\user\.ssh\id_rsa: ...
Xiiryo's user avatar
  • 121
12 votes
2 answers
22k views

I am relatively new to Linux. Using Ubuntu on WSL2. I added a private key for github with no passphrase using ssh-add. I used it a few times throughout the session but the next day I couldn't connect. ...
ahmedsabriz's user avatar
1 vote
1 answer
1k views

tldr; Does OpenSSH integrate with Windows, so that on unlocking Windows ssh-agent will "unlock" its password-secured private keys? On macOS and in Linux you usually have some kind of ...
oligofren's user avatar
  • 1,436
1 vote
1 answer
2k views

tl;dr: Is there a way to either disable the persistent import functionality of gpg-agent or work around that to allow using different sources for SSH keys? Situation I use GnuPG 2 keys (on a YubiKey) ...
Thomas Luzat's user avatar
3 votes
0 answers
6k views

I've upgraded my Windows OpenSSH to the latest version (https://github.com/PowerShell/Win32-OpenSSH/releases/) in order to get it accept my RSA key. Now i can add my key e.g. with ssh-add private.key ...
T-Regex's user avatar
  • 131
0 votes
1 answer
3k views

I have multiple ssh keys. Each time I reboot I have to do ssh-add for each of them and type passphrases to unlock each one. Is it possible to store all the in one container file which is added and ...
krokodil's user avatar
  • 101
1 vote
1 answer
914 views

Is there a way to prevent a certain SSH key to be automatically added to an SSH agent while all others are automatically added? For example, assume all my keys are protected by a passphrase. I would ...
Max Maier's user avatar
  • 111
6 votes
1 answer
656 views

I have three SSH key pairs that can be found via ssh-add -L; two keys are accepted by the remote server, but only one key can be used for GitHub, and I want to clone a GitHub repository via agent ...
shvv's user avatar
  • 163
1 vote
0 answers
72 views

My ~/.ssh/config: Host github.com HostName github.com IdentityFile ~/.ssh/some_rsa IdentitiesOnly yes Host * IdentityFile ~/.ssh/some_rsa I know that this doesn't make any sense since it's ...
rwms's user avatar
  • 111
4 votes
1 answer
2k views

I use the i3wm window manager on Fedora, and the urxvt-mld terminal dæmon for my multipl urxvt-mlc terminal clients. My problem is that I want just one ssh-agent for my entire session, and for the ssh-...
RoUS's user avatar
  • 203
2 votes
1 answer
4k views

What I want to achieve is to connect to server A and execute a script that connects to multiple other servers (serially) and perform a task on each. While I can perform that task using ssh -A, the ...
jimkont's user avatar
  • 123
0 votes
2 answers
3k views

I am unable to ssh from Windows 10 into a Linux machine using key pairs. The following is in the log debug3: unable to connect to pipe \\\\.\\pipe\\openssh-ssh-agent, error: 2 debug1: pubkey_prepare: ...
lordhog's user avatar
  • 207
0 votes
0 answers
347 views

I have a case like follows: ssh -J${some-jump-host} -i some-key.pem opc@${some-ip} which does not ask for the key password for some-key.pem but directly fail as it is not authenticated. However, if ...
ozgeneral's user avatar
  • 225
2 votes
1 answer
2k views

I am using Suse 12 on VM, it is left running and never off/rebooted. I use TCSH and would call > eval 'ssh-agent -c' > ssh-add > <put passphrase here> And then ssh login to servers/...
mohdyusuf's user avatar
  • 121
2 votes
0 answers
374 views

I've activated ssh-agent service on my Windows 10 machine and set it to start automatically at boot. Next, I've added my ssh keys to agent using ssh-add and during this process ssh-agent asked for ...
Shargan's user avatar
  • 21
0 votes
0 answers
609 views

So I have a weird ssh problem with agent fowarding I'm trying to debug. I have a number of machines inside a firewall I can access via proxy, or directly if I'm connected inside the firewall. ...
Chris Dodd's user avatar
2 votes
2 answers
4k views

Can somebody give me a one liner ssh command which can connect to remote host through bastion host (jump host). I am not interested in updating ssh config. I have tried below command but didn't work. ...
Deepak Janyavula's user avatar
0 votes
0 answers
350 views

I have created a public/private key pair and logged into my server with it. I have also copied it to the server under a user. It asked me for the password when logging in the first time but it doesn't ...
Whiteclaws's user avatar
0 votes
1 answer
244 views

I am working on a shell script performing recurring tasks of git commit git push mvn release:prepare mvn release:perform in a couple of paths of a JAVA software project. Now each of these commands ...
WolfiG's user avatar
  • 101
1 vote
1 answer
1k views

I'm using a long running tmux session on my workstation. Sometimes I have to connect to this workstation by ssh from my laptop. I take my ssh private key stored on a YubiKey with me. Means the Yubikey ...
grunix's user avatar
  • 11
0 votes
0 answers
1k views

On both my mobile device and Raspberry Pi (coincidentally AArch and ARM CPUs respectively), ssh-agent is not loaded by default. I first have to start the ssh-agent: eval `ssh-agent -s` I then ...
jimjamz's user avatar
  • 57
1 vote
0 answers
268 views

I have a local host L and two remote servers S0 and S2. I can get ssh keys to be forwarded to S0 but not to S2. What's going wrong? See below for details: L = dev29 S0 = testserver0 S2 = testserver2 ...
Olivier's user avatar
  • 11
0 votes
1 answer
697 views

I am trying to use ssh-agent to not have to type in my password every time I use an SSH key. I am following the instructions / guides but I still am asked every time for the password - how is this ...
Svarto's user avatar
  • 135
1 vote
0 answers
3k views

I installed the Remote-SSH add-on in VS code. I was able to connect to my server which uses key encrypted login with a passphrase. This included using Windows 10 ssh-agent as described here: https:/...
Thomas's user avatar
  • 11