Questions tagged [ssh-agent]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
48 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
25 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 ...
  • 178
0 votes
0 answers
29 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: ● ...
  • 203
0 votes
1 answer
40 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
67 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
490 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 ...
0 votes
1 answer
228 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 ...
  • 136
1 vote
1 answer
233 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 ...
  • 151
1 vote
2 answers
3k 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 file to use key chain. I've tried editing my config file that I ...
2 votes
0 answers
101 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 ...
0 votes
0 answers
434 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
618 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 ...
  • 121
0 votes
1 answer
91 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
425 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 ...
  • 7,299
2 votes
1 answer
150 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
307 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 ...
  • 2,084
0 votes
0 answers
255 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 ...
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 ...
0 votes
1 answer
87 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 ...
  • 111
1 vote
0 answers
200 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 ...
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
  • 133
2 votes
2 answers
6k 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 ...
  • 253
1 vote
0 answers
31 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 ~...
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 ...
  • 21
1 vote
0 answers
661 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 ...
  • 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 ...
3 votes
1 answer
4k 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 ...
  • 153
4 votes
3 answers
6k 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 ...
0 votes
1 answer
692 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 ...
13 votes
3 answers
3k 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, ...
  • 5,846
6 votes
1 answer
10k 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 ...
  • 161
2 votes
0 answers
695 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 ...
1 vote
0 answers
132 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 ...
1 vote
0 answers
574 views

scp not working when my ssh is working perfectly

I am having issues in scp a file to another user: scp filename USERNAME@192.168.0.1:~/path/to/directory I only get the below line, but scp doesn't happen: SSH_AUTH_SOCK=/tmp/ssh-KjEHW3vNQqjE/agent....
2 votes
1 answer
3k 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. ...
11 votes
1 answer
5k views

keychain vs 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 are the advantages and disadvantages of ssh-ident compared to keychain?
  • 3,110
5 votes
1 answer
627 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: ...
  • 181
2 votes
1 answer
1k 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 ...
  • 5,123
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! ...
  • 3,577
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 ...
  • 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 ...
1 vote
2 answers
5k 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....
  • 5,390
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 ...
  • 415
0 votes
1 answer
776 views

Solved. Lubuntu 14.04.4 ssh-agent configuration: what I am missing

There are many questions around regarding ssh-agent, but none of the situations described seems to correspond to my problem. First, I am using Lubuntu 14.04.4. I have followed the instructions (...
  • 1
6 votes
2 answers
9k views

ssh-add permanently a key without asking passphrase

I have a private key with a passphrase And I have 2 computers running Ubuntu 14.04 On the first I added the key using ssh-add ~/.ssh/id_rsa It asked me the passphrase, and it was added permanently. ...
  • 91
8 votes
2 answers
3k 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 ...
  • 260
3 votes
1 answer
3k views

Is it possible to keep added ssh keys in ssh-agent after reboot? (using keychain)

Is it possible to keep added ssh keys in ssh-agent after reboot? As I figure out we use keychain to make ssh-agent keep running between logins, Am I right? so, is there anyway to keeps password ...
  • 52.1k
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 ...
1 vote
0 answers
696 views

Why does ssh prompt me every time for the passphrase when ssh-agent is running?

After reinstalling Lubuntu Vivid Vervet on my computer, whenever I try to ssh into something, it asks for my passphrase. Before the reinstall, it would give me a graphical prompt for my passphrase if ...
  • 111