Questions tagged [ssh-agent]
144 questions
2
votes
0 answers
Install keychain on Amazon Linux AMI?
I have a github account that I would like to push to on a regular basis from an Amazon ec2 instance. In order to connect to the github account I have an SSH key that's passphrase protected, so in order to push to or pull from github I have to enter…

Zero Wing
- 251
- 1
- 2
- 4
2
votes
1 answer
SSH using Agent Forwarding with Windows Host OS, Vagrant Ubuntu Guest OS, and Keepass/Keeagent
Intent: To be able to deploy to lan-example.com from any dev environment; whether it be directly from the virtual OS, or any single-OS system, or even over the internet using ONE SSH key stored in Keepass. I'm currently unable to do so from within…

JakeTheSnake
- 363
- 1
- 8
- 19
2
votes
2 answers
copy between remote server with local authentication
When I need to copy some files between two remote servers, I usually
scp -3 user@server1:path user@server2:path
unfortunately, since that routes traffic through my machine, that is very slow when the files are "big" and the servers "near" one…

giorgiga
- 225
- 1
- 2
- 6
2
votes
1 answer
putty pageant - forget keys after period of inactivity
in the environment where windows client computers are used to run putty to connect to multiple linux servers i'm considering moving away from password based authentication and using public/private key pairs with pass-phrases.
using ssh-agent would…

pQd
- 29,981
- 6
- 66
- 109
2
votes
2 answers
Reverse ssh-agent forwarding. Using a remote ssh key
I have my github.com private ssh key in an ssh-agent on a key server. From my home computer behind NAT I want to run git pull and use my github ssh key.
The only way I know of doing this is to ssh into the key server and forward port 22, then ssh…

Collin Anderson
- 431
- 2
- 6
- 13
2
votes
2 answers
Avoid SSH AgentForwarding of incompatible keys
Good morning,
I have one ed25519-sk key (using a hardware token), which I need only on my personal machine for some high security servers (all Debian). This key type is supported by OpenSSH 8.3+. We still have two machines running RHEL 7 which…

Powerriegel
- 385
- 1
- 6
- 16
2
votes
1 answer
How to create an SSH tunneling agent via HTTPS?
How to allow SSH when the network is blocked on all ports except HTTP and HTTPS?
I'm curious to know how I can create a SSH tunnel which allows me to SSH via 443 and will work even after the server is rebooted?
I'm trying to use Laravel Forge to…

SSSK
- 21
- 3
2
votes
1 answer
How to check if SSH agent forwarding is running, from the remote server?
Locally, I've turned on the SSH agent and I've added my key:
$ eval $(ssh-agent)
Agent pid 80
$ ssh-add
Identity added: /c/Users/...../.ssh/id_rsa (.....@........)
In my ~/.ssh/config, I have this:
Host example
User root
HostName…

dodov
- 141
- 4
2
votes
0 answers
What is GPG equivalent of ssh-add?
When using password-secured SSH keys I can use ssh-add to preemptively unlock a key before it needs to be used and have it cached in ssh-agent for future use. What is a GPG equivalent of ssh-add? I know how to increase the caching time of GPG keys…

Jan Stolarek
- 255
- 1
- 3
- 8
2
votes
1 answer
ssh-add returns "Error connecting to agent: No such file or directory" even though agent is running
Windows 10 20H2, build 19042.685
I'm trying to use the SSH agent in the built-in OpenSSH client on Windows 10. The agent is running:
C:\Users\Daniel> Get-Service | ?{$_.Name -like '*ssh-agent*'}
Status Name DisplayName
------ ----…

Daniel Lo Nigro
- 464
- 2
- 6
- 10
2
votes
0 answers
Check if ssh-agent forwarding is allowed on server with restricted permissions
How can I, as a user logged in to a remote server via ssh, check if ssh-agent forwarding is permitted on that server?
Restrictions:
The tool 'sshd_config' either doesn't exist on this system, or I don't have permission to run it
I do not have…

Ben Farmer
- 121
- 3
2
votes
0 answers
SSH freezes after couple of lines printing
I am having this weird issue with a server whenever I try to open htop over ssh it hangs, ls works but ls -l hangs after couple of line if I execute history it hangs after printing 50+ line. But mosh seems to working fine. I cant figure out whats…

Nazmul Ahasan
- 21
- 3
2
votes
1 answer
How can I use different ssh keys for user1@host and user2@host, without resorting to aliased hostnames?
I have a remote CentOS server, lets pretend it's called hostname.com
hostname.com has several user accounts, and I want to ssh into this server as any one of these users (using ssh keys rather than password).
It seems everyone recommends just…

carpii
- 541
- 2
- 4
- 12
2
votes
4 answers
Running ssh-add from git bash using Windows 10's OpenSSH
I've setup OpenSSH following the 2019 Update of this question including setting GIT_SSH=C:\Windows\System32\OpenSSH\ssh.exe. Which works great, except when using when using git from git bash I get following error:
$ git pull
CreateProcessW failed…

Aaron N. Brock
- 121
- 1
- 4
1
vote
0 answers
Configure ssh-agent for TeamCity agent
I have TeamCity agents installed on a CentOS 7.3 server, and am trying to use the "SSH agent" build feature for a script that uses scp.
However, it always fails due to a TimeoutException:
[12:39:32] [Step 1/4] Failed to load SSH key 'Staging &…

Brad Mace
- 1,024
- 3
- 17
- 32