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.

Filter by
Sorted by
Tagged with
1 vote
2 answers
657 views

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
154 views

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
350 views

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
153 views

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
240 views

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,359
0 votes
2 answers
114 views

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

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
978 views

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
464 views

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
2k views

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
104 views

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
137 views

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

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
248 views

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
629 views

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
0 votes
1 answer
610 views

I am trying to set-up an automated way to load my ssh keys at login. I have the below configured: ❯ cat .ssh/config Host github HostName ssh.github.com User git Port 443 AddKeysToAgent ...
Mike O.'s user avatar
-1 votes
2 answers
114 views

I have this: ssh -i "alex-kp.pem" '[email protected]' ' cd codes/vbe eval $(ssh-agent) ssh-add -D ssh-add ~/.ssh/id_vbe ' it executes the commands ...
Alexander Mills's user avatar
1 vote
1 answer
204 views

How do I change the passphrase of an SSH key that is stored in the gpg-agent?
iGEL's user avatar
  • 121
0 votes
1 answer
156 views

I'm using a Debian 11 (Bullseye) with Gnome Desktop. For testing I implemented a SSH key-based authentication by creating a key-pair (transferring the public key to the remote host) and modifying ~/....
truth's user avatar
  • 1
2 votes
1 answer
2k views

We have a remote server which we use to build a certain part of our software. Part of that build process needs access to a private bitbucket repository. Normally in my local machine I have set the ....
Corcus's user avatar
  • 121
0 votes
1 answer
128 views

Unfortunatelly I made mistake somewhere but can't get where. I had issues with ssh and github, tried different things and they didn't work. Later I decided .. i think.. moved file i balieve it was ...
Maks Chornyi's user avatar
2 votes
0 answers
379 views

I have my ssh-agent configured with AddKeysToAgent yes to lazy load keys into the agent only when they are first used. I also configured ForwardAgent yes in my ssh config for a remote server. I want ...
F21's user avatar
  • 231
0 votes
0 answers
2k views

I am new to SSH and am currently using a SSH connection to my Github repositories because I don't want to setup a HTTPS connection. This is what my script looks like #!/bin/bash eval "$(ssh-agent ...
TC_neva's user avatar
1 vote
0 answers
2k views

I have my ssh identities added at the end of the .bashrc script, as the server says here when I log in, Agent is running with pid 8411 and all of the identitias are added. As is also evident from the ...
Matt Welander's user avatar
0 votes
1 answer
1k views

After creating an agent, it automatically detaches itself from the parent process. someUser@MyPC:~$ eval "$(ssh-agent -s)" Agent pid 10222 someUser@MyPC:~$ ps -e --forest | grep ssh-agent ...
learningdudz's user avatar
0 votes
0 answers
66 views

I have different users on the server and each of them has a username and password I want each user with his own username to be able to connect to the server with only one device at a time and not to ...
Hossein Sharbati's user avatar
1 vote
2 answers
15k views

I want to try the ssh-agent to login without password (I already know gssapi and pubkey methods, but I want to learn this). On client and server I had enabled AgentForward on ssh_config (client) and ...
elbarna's user avatar
  • 14.5k
3 votes
1 answer
15k views

I'm using WSL2, on Terminal, with Ubuntu installed. I have added the following to my .bashrc: # Start ssh-agent # check if ssh-agent is already running if [ -z "$SSH_AUTH_SOCK" ]; then #...
Nik Shafiq Sirhan's user avatar
2 votes
1 answer
261 views

I see the following on macOS: $ ps ax | ag ssh-agent 8677 ?? S 0:00.60 /usr/bin/ssh-agent -l Looked up ssh-agent's man page on the terminal, but it has no mention of a -l switch. None of the ...
toraritte's user avatar
  • 1,222
0 votes
1 answer
240 views

I want to start an ssh-agent instance when my user logs in. I also want several specific keys added to that agent after it has been created. I should be able to start and stop the agent through ...
Lester Peabody's user avatar
0 votes
5 answers
1k views

What I already know To start ssh-agent you need to use the command eval $(ssh-agent) You have to do this because of security reasons. A child process can't change environment variables of the process ...
Bog's user avatar
  • 1,154
1 vote
1 answer
2k views

Basically, my goal is to use a single key for everything. I have a GPG key that I imported onto my MacBook, and would like to use that key for SSH authentication. However, despite my several attempts, ...
Apoorv Chauhan's user avatar
0 votes
2 answers
1k views

I have a DigitalOcean droplet into which I'm attempting to clone a repo from Github. This works fine on my local machine, and I've been following the guide from Github here: https://docs.github.com/en/...
Adaddinsane's user avatar
17 votes
3 answers
17k views

I have ssh keys set up and I can see my key in KWalletManager under ksshaskpass. How do I get it so that I am not asked for my ssh passphrase eg. every time I do something in Git. (It says: "...
mcarans's user avatar
  • 725
2 votes
1 answer
494 views

I use keepassxc (my password manager) to manage my ssh keys. This means the keys are stored within the database (not stored on disk in a traditional way). When I unlock my password database, all keys ...
laalsaas's user avatar
  • 175
0 votes
1 answer
573 views

In Ubuntu and Fedora in the /etc/ssh/ directory exists the following files: ssh_host_key ssh_host_dsa_key (not available in Fedora) ssh_host_ecdsa_key ssh_host_ed25519_key ssh_host_rsa_key For the ...
Manuel Jordan's user avatar
0 votes
1 answer
152 views

I want to link some passwordless SSH logins to some screen sessions, so that anytime a window is opened in the screen session the ssh-agent is inherited, but whenever I open a new window in screen, ...
vfclists's user avatar
  • 7,919
1 vote
0 answers
410 views

For the past years after a reboot I used to run ssh-add -A that loaded all my keys ( the previously i've added with -k ) back to the agent. But now I received a new laptop ( MacOSX Monterey ) and the -...
Ricky Levi's user avatar
1 vote
1 answer
3k views

Among the many question already asked none seem to answer my problem. So i'm trying to setup a ci/cd pipeline with gitlab and i'm stuck in the deploy job with ssh. So I have a buildserver which there ...
technologyresearcher's user avatar
1 vote
0 answers
145 views

I'm on a Raspberry running Raspbian GNU/Linux 11 (bullseye). Im stuck with a strange behaviour. After booting, ps -ef | grep ssh says root 482 1 0 16:03 ? 00:00:00 sshd: /usr/...
fbstov's user avatar
  • 9
1 vote
1 answer
2k views

Currently, I have commands to start the SSH agent in my .bashrc file. The trouble is that this only works in a particular terminal - each time I open a terminal, I'm asked for my private key's ...
Frost Ravenstorm's user avatar
1 vote
1 answer
859 views

I am working on some shell and I encountered the following line: cat /ssh/sshkey | tr -d '\r' | ssh-add - This code get a key and add it to an agent. This work on its current environment, but when I ...
Saurazim's user avatar
1 vote
1 answer
2k views

I am using KDE on Arch Linux and I am trying to run gpg-agent in ssh-agent emulation mode as described here. I created env file ~/.config/environment.d/80_gpg_agent.conf for systemd-environmentd-...
gudvinr's user avatar
  • 21
0 votes
1 answer
286 views

I'm using Funtoo keychain on Ubuntu 22.04 and I have followed the instructions to add the following to ~/.profile: eval `keychain --eval --agents ssh id_rsa` I'm running the i3 window manager, from ...
davidA's user avatar
  • 181
0 votes
1 answer
1k views

my computer is Windows (Ubuntu), the host is Linux. I am trying to access a visualization program on the host computer (Linux) in my office from my home laptop (Windows) via ssh client and when trying ...
MajesticMarkUp's user avatar
1 vote
0 answers
71 views

I am on machine B and seeking to SSH into machine C. I failed to, which made me think perhaps I haven't actually set up my SSH keys on machine B. If I do ls -al ~/.ssh on machine b, I see -rw------- ...
Caleb Jay's user avatar
  • 121
0 votes
2 answers
4k views

I want to add to my bashrc the code: eval $(ssh-agent -s) ssh-add ~/.ssh/id_rsa but it is always asking to Enter passphrase for /home/User/.ssh/id_rsa: A friend of mine add the same snippet to bashrc ...
BigdataADD's user avatar
3 votes
1 answer
3k views

I have followed How to enable SSH access using a GPG key for authentication to enable SSH access using a GPG key for authentication. $ gpg2 --expert --edit-key <KEY ID> gpg> addkey Please ...
Ahmad Ismail's user avatar
  • 3,134
1 vote
1 answer
487 views

I am writing a script in bash to sftp files to another server. I have an SSH key with a password as its required. I have tried using SSH_ASKPASS variable but its not working. DISPLAY=: SSH_ASKPASS=/...
Shane Miller's user avatar
0 votes
1 answer
50 views

I have three servers A,B, and C. I need to do is to run something like: my_self@A:~$ ssh B "ssh C run_a_script_here" This works if I have my ssh keys setup correctly on A,B,C, and I do not ...
Philip Shangguan's user avatar

1
2 3 4 5 6