Skip to main content

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.

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, ...
Konzertheld's user avatar
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.
toraritte's user avatar
  • 1,222
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....
HerpDerpington's user avatar
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 ...
Christian Bongiorno's user avatar
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 ...
symcbean's user avatar
  • 6,329
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 ...
vfclists's user avatar
  • 7,919
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? ...
Krazy Glew's user avatar
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 ...
Educpf's user avatar
  • 53
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 ...
ncoghlan's user avatar
  • 1,091
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. ...
mcint's user avatar
  • 113
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 ...
bluppfisk's user avatar
  • 203
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 ...
Tarmo's user avatar
  • 103
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 ...
Daniil Screpchenko's user avatar
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 ...
Kai78's user avatar
  • 21
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: ...
Henrik VT's user avatar
  • 111

15 30 50 per page
1
2 3 4 5
19