Questions tagged [ssh-agent]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
41 views

SSH: Bad configuration option

I have a problem setting up the SSH service: SSH: Bad configuration option
0 votes
0 answers
67 views

Seahorse (Passwords and Keys) - how to mark key as trusted

I have these 2 OpenSSH keys in Seahorse (Passwords and Keys), but the first one (that only has the golden key icon) is somehow not marked as trusted nor personal and is only displayed when I choose &...
5 votes
2 answers
11k views

How to install ssh keychain on Ubuntu with WSL

Please help me understand how to install SSH keychain on my Ubuntu under WSL in order for me to be able to configure my .ssh/config to use it. I'm taking some online training, and I've tried setting ...
0 votes
1 answer
269 views

Is it possible to attach ssh-add / ssh-agent to an existing pid

I am trying to set up some clients ready for one server to ssh to each of them. I have created a service for the ssh-agent on server. From systemctl --user status ssh-agent.service I can see a pid: ● ...
5 votes
2 answers
10k views

SSH-Agent can't open a connection to authentication agent?

When I SSH into my firewall server, then attempt to ssh into another machine on the local network from there I get the following error: Could not open a connection to your authentication agent. Is ...
15 votes
1 answer
6k views

What are the differences between keychain and ssh-ident [closed]

I'm considering using a tool to setup my ssh-agent environment so I only need to enter my ssh key once. What is the difference between ssh-ident and keychain? Does one have advantages over the other?
0 votes
0 answers
376 views

keychain vs ssh-ident for WSL2

I tried to avoid retyping ssh passphrase for git. Turns out there's no one way to it. Not sure why keychain vs ssh-ident counts as opinion-based. Also, that question was asked for a full linux system ...
2 votes
0 answers
2k views

Ubuntu 22.04 LTS: SSH fails with `sign_and_send_pubkey: signing failed: agent refused operation`

I think my question is going to illustrate that I don't understand the relationship between ssh, ssh-agent, and gnome-keyring, but I've tried all of the fixes suggested in response to similar ...
0 votes
0 answers
859 views

SSH agent not autostarting anymore after upgrade to Kubuntu 22.04

I upgraded from Kubuntu* 20.04 to 22.04. Now ssh-agent is not automatically started anymore upon boot. To my understanding, ssh-agent is supposed to be started by the desktop environment (i.e. ...
2 votes
0 answers
2k views

Environment variable SSH_AUTH_SOCK isn't set

Situation: For public key authentication i use Keepass2 with plugin KeeAgent. All is right configured in Keepass2/KeeAgent and the key-pair is generated and the pub-key is copied to the server. ...
0 votes
0 answers
86 views

Unable to Replace SSH KeyFile and SSH_Username With Variables in Bash Script

I am on ubuntu 20.04 and I am running a bash script that I want to make portable to my other servers, but I can't replace the identityfile AND the ssh_username with variables, at the same time, ...
0 votes
0 answers
327 views

ssh-add not recognize running ssh-agent

ps_out=`ps -U "$USER" | grep ssh-agent | grep -v 'grep' | grep -v $0` result=$(echo $ps_out | grep ssh-agent) if [ "$result" != "" ];then echo "ssh-agent is ...
8 votes
4 answers
5k views

Why can't I interact with my ssh-agent? (e.g. ssh-add -D doesn't work)

On my Kubuntu 14.04 system I'm trying to manage keys with my SSH agent, but somehow it appears to ignore my ssh-add commands. Look at this below and you'll see what I mean. List the current keys ⟫ ...
0 votes
1 answer
297 views

Ubuntu ssh-ing Ubuntu on home network [duplicate]

I have a laptop (Ubuntu, wifi) and PC (Ubuntu, Ethernet) connected to my home router. I'd like to be able to ssh from laptop to PC to copy and run executables. I don't need a gui, just running htop ...
0 votes
0 answers
199 views

ssh agent forwarding doesn't forward SHA256

ssh -A IP-address works always for me, but on one server ubuntu 14.04 doesn't work as it is supposed to. I have ssh keys on my computer with SHA265 algothithm. But when I go to this server it somehow ...
0 votes
1 answer
2k views

CLI needs sudo to be able to SSH

I have a strange error. I just installed Ubuntu 22.04 and copied over my SSH keys from the old installation (Ubuntu 20.04). Now suddenly I need sudo to be able to SSH to any machine - as long as it's ...
1 vote
1 answer
1k views

SSH asking some passwords in the terminal and others in the GUI (gnome-keyring)

After having the Ubuntu updated from 20.04 to 22.04, ssh started asking some passwords in the GUI (and they are kept as expected), but others are asked in the terminal and they aren't kept. If I add ...
31 votes
4 answers
152k views

ssh-add command does not add my identity to ssh-agent

I just installed ubuntu 13.10 and I was about to add my identity to my ssh-agent so I open up a Terminal and did this bjorgvin@buntu:~$ ssh-add -l The agent has no identities. bjorgvin@buntu:~$ ssh-...
2 votes
1 answer
668 views

Git can't access SSH key after every laptop restart

So I have set up SSH key on my Ubuntu 20.04 with this guide. The problem is that every time I restart my machine and try to use the SSH key with git pull or some command that requires SSH auth it says ...
4 votes
3 answers
8k views

how to use ssh agent forwarding

I have three systems , a client that only install ssh client and server_1 and server_2 . im using ssh public authentication and i can ssh from client to both server_1 and server_2. i saved same pub ...
6 votes
1 answer
12k views

How to fix "ssh-agent refused operation" on Ubuntu 17.10?

I installed Ubuntu 17.10 on a machine and created an ssh key. However I am not able to use the gnome keyring to unlock this ssh key, I always get the following error message when trying to connect via ...
2 votes
0 answers
201 views

Make SSH agent to confirm the passphrase with interval (AddKeysToAgent confirm interval example)

Right now, the system is asking me for the SSH key passphrase only once during the session. However, I don't find it secure and I would like it to ask me for the password periodically (e.g. every 10 ...
5 votes
3 answers
2k views

Where is ssh-agent started?

ssh-agent is running but it is not started in any of these files: lightdm-session profile bashrc I have a recollection of seeing the ssh-agent initialization shell routine somewhere on ubuntu, ...
0 votes
1 answer
949 views

SSH Key doesn't work with any GIT repo

Just installed Ubuntu 20.04.02LTS. I installed GIT, generated a new .ssh with this example from DigitalOcean, after which I added the new key (public) to my github, bitbucket and private git repo, and ...
1 vote
0 answers
860 views

Why does keyring not unlock SSH?

When I use SSH to login on the network it asks for the password of id_rsa, even though I have keyring unlocked. What is going on, and how can I take steps to solve it? Version: Ubuntu 20.04.2 LTS, ...
0 votes
1 answer
154 views

Ubuntu 18.04 how do I create ssh-agent just for 1 terminal application with multiple tabs but not the whole system

I'd like to be able to create ssh agent just for a single terminal window, so that key(s) loaded into that agent are available only in that windows a terminal application running multiple tabs, but ...
0 votes
1 answer
862 views

How to explicitly pop up the dialog to enter passphrase for SSH key?

I have a private SSH key which I use to login to remote server. When I start ssh my.server command in GNOME terminal, a dialog box pops up to enter the passphrase to unlock the key (see below - it's ...
3 votes
1 answer
2k views

ssh-agent not working in Kubuntu 19.04

I freshly installed Kubuntu 19.04 but I used my old home folder from Linux Mint. .bashrc and .profile are Kubuntu versions. When using ssh, I everytime need to type my pass phrase. I can manually ...
2 votes
1 answer
226 views

How can I reinitialize ssh-agent through a remote login after rebooting?

My work computer runs Ubuntu 19.10 and has an ssh-agent setup for password-free connections to some other systems. It was rebooted and now the scripts that relied on not getting password prompts are ...
0 votes
1 answer
374 views

SSH Key Registration Not Preventing Prompting of Password

I recently switched from Ubuntu 19.10 to Kubuntu 19.10. Ever since doing so, servers I ssh to always prompt me for password, even though I've used ssh-copy-id to register my public ssh key with those ...
0 votes
0 answers
500 views

How to achieve perstistence with ssh keys using ssh-add

I'm trying to make my ssh keys permanent. I tend to use crazy passwords and typing it in every time destroys workflow. I have two keys, one with to a remote server and one for github. I would like to ...
0 votes
2 answers
4k views

Permission denied to access public ssh key

I can't add my ssh public key to the ssh-agent and my ssh folder is odd I believe.here is a screenshot
1 vote
3 answers
2k views

Pac ssh manager on Ubuntu 14.04 does not work

I am using Ubuntu 14.04. For ssh, I am using pac manger. It was working perfectly on Ubuntu 12.04 but after upgrading to 14.04 pac does not work. When I run it from the terminal it says: Can't locate ...
1 vote
1 answer
4k views

SSH client not showing prompt after successful login

I'm having problems with my SSH client on Ubuntu 10.10. When I switch on my computer and open a Terminal and execute the command ssh user@host, it gives me a password prompt after which I enter the ...
2 votes
2 answers
7k views

ssh-add -l Error connecting to agent: Connection refused

I'm using Ubuntu 18 on Windows Bash When i launch Ubuntu I can ssh-add without any problem. Then I connect to a remote server ssh user@address The ForwardAgent doesn't work (git pull, for example ...
10 votes
4 answers
3k views

Doing an ssh-add upon ssh/slogin if key is not in ssh-agent?

When I'm running Gnome, ssh-agent will run ssh-add upon slogin/ssh if the identity is not loaded. I want to mimic this behavior on remote shells, but everything I find suggests to run ssh-add upon ...
0 votes
1 answer
102 views

Why I have to command “source virtualenvwrapper.sh” every time I open a new Terminal for use workon?

I want to use virtualenvwrapper. But when I close a terminal then open a new one, I have to command "source virtualenvwrapper.sh" again then I can use workon.
1 vote
0 answers
36 views

How can I mount a remote drive that I can only access via SSH agent forwarding? [duplicate]

I apologize if the question title is unclear. To clarify, I have to SSH into server1 and then SSH from there into server2. Server2 is where the folder I need to mount is located. I've tried setting ...
1 vote
0 answers
252 views

ssh agent with loaded key shared across multiple terminal windows

I wonder how is it safe if I open terminal and add a key using ssh-add private-key-file, and all my other terminals share the same key loaded if I check with ssh-add -l. I'm afraid what if I download ...
14 votes
3 answers
4k views

What could be the reason, that private keys are not unlocked?

Since I updated to Ubuntu 17.10 a while ago, my private keys – the which I use for example to access my server via ssh – are not unlocked programmatically after login anymore. My understanding is, ...
2 votes
1 answer
2k views

WSL Ubuntu 18.04 Install SSH key forwarding Issue

I recently updated my WSL Ubuntu install to the 18.04 version available through the Microsoft Store. After the install I ran into issued with the SSH client and the ability to forward keys. So the ...
1 vote
0 answers
34 views

SSH Key Requires A Password Through SSH But Not Through Client [duplicate]

The issue that is occurring is the following; I was given an ssh key (specifically a .ppk file for an AWS server). When I try to use the key through shell, I get prompted for a password; i.e. ssh -i ~...
9 votes
2 answers
4k views

Why isn't my keyring in Ubuntu working?

I have encrypted my id_rsa with a password. I think Ubuntu has a keyring system which prevents me from inputting password every time I have to use id_rsa, like git push. Sometimes I don't need to type ...
1 vote
0 answers
708 views

ssh-agent does not autostart from .bashrc after update to 18.04

I have Ubuntu with XFCE for several years. When it was 16.04 I configured the autostart of ssh-agent in my .bashrc as follows: # Set up ssh-agent SSH_ENV="$HOME/.ssh/environment" function ...
7 votes
1 answer
3k views

Why do ssh operations always ask for passphrase? (with ed25519)

I just updated my ssh key and added a passphrase, however it constantly nags me for it now, such as when I do a git (or mercurial hg) push. ssh-agent is running: xxx 1303 1118 0 09:16 ? 00:00:00 ...
7 votes
0 answers
2k views

How to use normal ssh-agent on 18.04?

I am using an 18.04 installation that has been upgraded from 17.10. When it was on 17.10, I pulled the GNOME SSH/GPG agent out, in favour of using the standard, command-line SSH agent. I wrote up the ...
13 votes
3 answers
27k views

How to avoid typing ssh-add everytime

I read and followed some online documentation on how to set up a ssh-agent so that I don't need to type in password every time I ssh to a remote machine. However, with the help of ssh-agent, I still ...
3 votes
3 answers
3k views

How to get my ssh passphrase remembered during a Ubuntu session?

If I open a gnome terminal and connect to a server through SSH, I am asked for my passphrase by a text prompt in my terminal instead of a GUI, and, worse, this passphrase is not stored in memory for ...
3 votes
1 answer
5k views

ssh-agent won't start (even with eval ` `)

I'm pulling my hair out on an ssh-agent issue.. I run a VPS under Ubuntu 16.04 and I setup a private/public key to be able to pull code from my Bitbucket repo. I initialized the repo, it all seemed ...
6 votes
2 answers
2k views

Use sshfs with ssh-agent and/or kwallet

I am using sshfs with a password protected key pair to mount a remote folder using a shell script. I am also using ssh in that script. Every time I start the shell script I get a password request on ...