Skip to main content

Questions tagged [ssh-agent]

The tag has no usage guidance.

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

SSH: Bad configuration option

I have a problem setting up the SSH service: SSH: Bad configuration option
Mark Wudman's user avatar
0 votes
0 answers
123 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 &...
jave.web's user avatar
  • 420
0 votes
0 answers
519 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 ...
Anutrix's user avatar
  • 121
2 votes
0 answers
3k 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 ...
tcquinn's user avatar
  • 286
0 votes
0 answers
1k 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. ...
luator's user avatar
  • 175
3 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. ...
A101755's user avatar
  • 61
0 votes
0 answers
96 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, ...
nightwatch's user avatar
0 votes
0 answers
429 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 ...
Dr.PB's user avatar
  • 178
0 votes
1 answer
348 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: ● ...
Chris G.'s user avatar
  • 213
0 votes
1 answer
733 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 ...
user997112's user avatar
0 votes
0 answers
225 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 ...
deepdows's user avatar
  • 501
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 ...
Daniel Hansson's user avatar
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 ...
Luciano's user avatar
  • 186
2 votes
1 answer
823 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 ...
crodev's user avatar
  • 161
6 votes
2 answers
13k 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 ...
Abayomi Usman's user avatar
2 votes
0 answers
217 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 ...
Slava Fomin II's user avatar
1 vote
0 answers
897 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, ...
Ananas_hoi's user avatar
0 votes
1 answer
1k 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 ...
lordZ3d's user avatar
  • 121
0 votes
1 answer
158 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 ...
user1325696's user avatar
0 votes
1 answer
1k 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 ...
raj's user avatar
  • 10.7k
2 votes
1 answer
242 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 ...
user5728432's user avatar
0 votes
1 answer
381 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 ...
Lonnie Best's user avatar
  • 2,214
0 votes
0 answers
573 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 ...
W1ND_W4LK3R's user avatar
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 ...
Powerriegel's user avatar
0 votes
1 answer
103 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.
milad salimi's user avatar
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 ...
Monica's user avatar
  • 111
1 vote
0 answers
280 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 ...
user1325696's user avatar
0 votes
2 answers
5k 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
Getsuga's user avatar
  • 133
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 ...
Haim's user avatar
  • 293
1 vote
0 answers
35 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 ~...
Ben Giamarino's user avatar
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 ...
Brian E's user avatar
  • 21
1 vote
0 answers
716 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 ...
dvitas's user avatar
  • 11
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 ...
ticktockhouse's user avatar
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 ...
Buno's user avatar
  • 183
4 votes
3 answers
9k 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 ...
bojack horseman's user avatar
0 votes
1 answer
728 views

What did Ubuntu 17.04 (Zesty Zapus) do to my ssh-agent?

I just upgraded my Ubuntu 16.10 install to Ubuntu 17.04 and have found that I no longer have a working ssh-agent: $ ssh-add my_rsa_key Error connecting to agent: No such file or directory $ Upon ...
Jean-Paul Calderone's user avatar
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, ...
user5950's user avatar
  • 6,326
6 votes
1 answer
13k 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 ...
JHnet's user avatar
  • 161
2 votes
0 answers
706 views

ssh-add fails when using ed25519 keys [duplicate]

I've been upgrading my ssh keys on all my machines, and came across a bit of weirdness with ssh-add. If I create an ed25519 key and then try to ssh-add it fails. If I take the original rsa key, and ...
TrevorFurnell's user avatar
1 vote
0 answers
140 views

Ubuntu 14.04 (linaro) seahorse (gnome keyring) fails to store unlock passphrase of ssh key

I have a hard time telling seahorse 3.10.2 to store the unlock passphrase for my ssh key. With Ubuntu 10.04 one had to invoke the following command: /usr/lib/seahorse/seahorse-ssh-askpass id_rsa ...
asoundmove's user avatar
1 vote
0 answers
597 views

scp not working when my ssh is working perfectly

I am having issues in scp a file to another user: scp filename [email protected]:~/path/to/directory I only get the below line, but scp doesn't happen: SSH_AUTH_SOCK=/tmp/ssh-KjEHW3vNQqjE/agent....
thenakulchawla's user avatar
2 votes
1 answer
4k views

Use gnome-keyring as ssh agent instead of openssh

I want to use gnome-keyring in KDE to provide access to ssh passphrases. It is unlocked properly on login and the ssh agent socket is there. My problem is that the openSSH ssh-agent shadows this. ...
Fred Schoen's user avatar
15 votes
1 answer
7k 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?
Tom Hale's user avatar
  • 3,588
6 votes
1 answer
749 views

Switch to openssh-agent

My problem is to get ssh-agent instead of gnome-keyring up and running on a fresh installation of Ubuntu 16.10. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: ...
max-m's user avatar
  • 191
4 votes
1 answer
2k views

Is there a way to remove all the ssh keys added to ssh-agent when the user locks the system?

I have a bunch of keys added to the ssh-agent, keys to servers, repositories, etc. Is there a way to remove all the ssh keys added to ssh-agent when the user locks the system? My system right now is ...
Starx's user avatar
  • 5,313
2 votes
2 answers
3k views

Ubuntu 16.04 ssh-add without ssh-agent?

I have configured ssh-agent on many older Ubuntu installations, but today, on my new Ubuntu 16.04 setup, I realized that ssh-add has been working, but I never configured my system to run ssh-agent! ...
Dave's user avatar
  • 3,657
2 votes
0 answers
3k views

SSH agent forwarding failed on ubuntu 16.04 with error 'sign_and_send_pubkey: signing failed: agent refused operation'

Am trying to use ssh agent forwarding on Ubuntu 16.04 by first making sure the agent is running with the command ssh-agent -s then adding identities with ssh-add and ssh-add -c my_key.pem then ...
jay-mo's user avatar
  • 21
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 ...
Gringo Suave's user avatar
1 vote
2 answers
6k views

Set Up SSH Agent for git

I don't want to enter my ssh password every time I do git push or git pull to/from a remote repository I access via ssh (login via user name and password). ssh-agent git config --global credential....
UTF-8's user avatar
  • 5,810
1 vote
1 answer
1k views

ssh key forwarding not working under i3wm

I recently switched from the regular Lubuntu LXDE/openbox to the i3 window manager under Lubuntu 16.04. In either environment I can ssh with authentication forwarding activated into another machine ...
some user's user avatar
  • 465