Questions tagged [ssh-agent]
ssh-agent is a single sign-on mechanism for SSH that is included in the OpenSSH software. Use this tag for questions on how to configure and use ssh-agent.
280 questions
1
vote
2
answers
613
views
Why is ssh-agent ignoring the lifetime in .ssh/config?
I can't get ssh-agent to work like I want to. It keeps removing the saved identities on reboot.
I use AddKeysToAgent in my .ssh/config like this:
AddKeysToAgent 30w
That's the top of the file, ...
0
votes
1
answer
123
views
How to connect and browse files of remote server via Midnight Commander's Shell link (copy files over SSH) if the private key requires password?
There are endless number of helpful articles and answers on how set up ~/.ssh/config (e.g., this one's pretty good), but none of them mentions what to do if the private key is also password protected.
1
vote
1
answer
225
views
Repeated "from agent: agent refused operation", even after having added private key
I am trying to unlock the gnome keyring on my server machine so that I can push git commits via ssh to github. The ssh key for this is encrypted. What I tried is this:
# See https://unix.stackexchange....
4
votes
1
answer
151
views
How can I reverse forward git ssh when my config requires a Yubikey
I frequently need to log into a VM that has no direct access to the internet or our source code repo. In the past I have circumvented this with a reverse port forward over ssh but now my problem is ...
0
votes
2
answers
207
views
ssh agent forwarding - what's going on under the hood?
When I ask Google how ssh agent forwarding works it gives me lots of links to SEO optimized rubbish explaining how to provision ssh-agent. That is NOT what I am asking.
I currently have an issue where ...
0
votes
2
answers
104
views
Has the default behaviour of trying ssh-agent keys changed?
At some time in the past whenever I tried an ssh connection to a server without specifying the password ssh would try all the keys in ssh-agent to the point where if there were too many keys, my IP ...
11
votes
4
answers
1k
views
How can I secure unencrypted credential files, for programs that assume them (like gmi/lieer)?
Brief
Q: How can I cryptographically secure a credentials file that is stored on disk as plaintext?
Or, rather: how can I avoid storing credentials like those for Gmail and other API keys on disk? ...
0
votes
1
answer
878
views
Unable to add keys with ssh-agent plugin in zsh
I just installed arch, and I am trying to configure my shell, zsh.
I am currently using zinit as my plugin manager with powerlevel10k.
I was trying to automate the activation of the ssh-agent and the ...
0
votes
2
answers
397
views
First ssh-agent request fails on WSL with systemd socket-activation
Running Fedora on WSL2, I find that the socket activation on ssh-agent doesn't quite work properly: the first request that triggers the actual service starting fails. This may be a git fetch or git ...
1
vote
1
answer
1k
views
How do I get ssh-askpass working in Wayland, on KDE?
I'm trying out Wayland on KDE 6.1, to work around some other issues. I rely heavily on ssh-askpass for confirming use of ssh keys (for local pam and remote connections) and don't want to give this up.
...
1
vote
1
answer
97
views
ssh agent forwarding when disk is full (and I cannot free any)
Target system can only be logged into using public key authentication using a named user. The password is disabled. We use ssh-agent forwarding in combination with libpam_ssh_agent_auth to allow ...
0
votes
1
answer
131
views
Launching via Plasma shortcut removes ssh-agent's environment variables
Running Plasma 5.27.10 on Debian testing/trixie. An ssh-agent is launched via user service /usr/lib/systemd/user/ssh-agent.service and its socket is exposed in my session's environment variables. All ...
0
votes
2
answers
2k
views
Why is ssh-agent.service running, but when I use ssh-add I get an error connecting to the agent?
The ssh-agent service is enabled for the user and is running without errors. (status is active).
But when I try to use ssh, I get the error Could not open a connection to your authentication agent.. I ...
2
votes
0
answers
235
views
ssh-agent with multiple keys
I have a script which retrieves private keys from a repository database and adds them to the ssh-agent with ssh-add - <<<"----My Private Key----"
The keys don't get stored on the ...
1
vote
2
answers
590
views
Can't SSH in to remote server due to bad config
I wrote a bad SSH config on a remote server while setting up Git and now I cannot access the server. Here is the error:
/users/<user>/.ssh/config: line 2: Bad configuration option: ...