Questions tagged [ssh-agent]

144 questions
7
votes
2 answers

SSH/SFTP connections fails silently on OSX 10.8.2 - ssh-agent issue

I'm trying to login to a remote machine with SSH or SFTP. when I try ssh u-indgo@ssh1.eu1.frbit.com the CLI just won't respond. I get an empty new line, in which I can type characters, but nothing more. when I try to connect with SFTP using the…
Matanya
  • 21
  • 1
  • 9
7
votes
3 answers

Allow only specific keys in agent forwarding?

Is it possible to use agent forwarding excluding all keys from being forwarded, except ones specifically stated? Alternatively, are there any ways to specify the order the keys are tried per session? Using ssh-agent requires managing different…
dgo.a
  • 209
  • 3
  • 8
7
votes
2 answers

Is it possible to use ssh key which contents is specified in environment variable?

I'm working on remote servers and I need to do a git clone from a another server using my private key. But I don't want to store my key on the remote servers. I want to avoid storing ssh key on the remote servers at all, even in a temporary file. Is…
iafonov
  • 173
  • 1
  • 4
7
votes
1 answer

Does SSH allow jump host to access forwarded agent?

If I SSH to targethost via jumphost with agent forwarding enabled, will jumphost have access to my SSH key agent? ssh -A -J user1@jumphost user2@targethost Is this still secure, if I don't fully trust jumphost?
larsch
  • 171
  • 5
6
votes
1 answer

rsync from remote ssh server with forwarded keys

Context I am writing a synchronisation script to sync some web environments. Ex: Update integration from production (mostly to fetch new database rows and uploaded files) Some of my prerequisites are : Developpers will use this script from the…
Huge
  • 231
  • 3
  • 6
6
votes
2 answers

ssh agent forwarding fails with "Could not open a connection to your authentication agent"

I receive a Could not open a connection to your authentication agent error message when I attempt to connect from an intermediate server to a third server using the agent forwarding option (-A) of an OpenSSH client. The first connection to the…
chb
  • 283
  • 2
  • 12
6
votes
1 answer

ForwardAgent in Jenkins

I'm trying to enable ForwardAgent in the "Publish over SSH" Jenkins Plugin. This would allow jenkins to execute deployments, rsyncs and svn+ssh checkouts on remote servers. But there's no option for this in the GUI. ForwardAgent is set to yes in…
r_2
  • 335
  • 3
  • 9
6
votes
1 answer

How to enable key forwarding with ssh-agent?

I've used the ssh-agent from oh-my-zsh to manage my SSH key. So far, so good, i only have to type the passphrase for my private key once when I start my shell and public key authentication works great. The problem is however that key forwarding…
Lamnk
  • 1,095
  • 3
  • 11
  • 17
6
votes
2 answers

SSH Agent forwarding not working on Ubuntu 22.04

I am trying to connect to github over ssh on my remote server (Running Ubuntu 22.04). On my local computer (Running Win 10), I have ~/.ssh/config file with the following: Host remote HostName SERVER_IP port 22 User ubuntu …
mr.d
  • 203
  • 3
  • 7
6
votes
1 answer

Pass password in ssh config

Is there any way to pass a password using .ssh/config? I'm trying to set up a way to login to a server under a specific user and then switch automatically to root when I connect (need to input password). For now, I have: Host server HostName…
cduma
  • 61
  • 1
  • 1
  • 2
5
votes
5 answers

Using ssh-agent with KDE?

I had this working once before, but for some reason it's not working on my new system. in .kde4/Autostart/ I have a symlink to ssh-agent called 01-sshagent and then a simple script called 02-sshkeys that looks like this: /usr/bin/ssh-add $(find…
Daniel Quinn
  • 635
  • 2
  • 9
  • 15
5
votes
5 answers

Pass your password to your SSH key via a script

I am writing a script that will allow me to retrieve a file from all of my servers at once. I have SSH keys in place in order to log into my servers. My SSH key however requires a password. The script I am writing will not be automated, it will only…
mhost
  • 1,179
  • 3
  • 16
  • 25
5
votes
3 answers

What part of SSH forwarding sets up SSH_AUTH_SOCK?

I'm trying to get SSH agent forwarding working from my Mac to a Debian server. On my Mac, I have verified that I have: SSH_AUTH_SOCK exists ssh-add -l shows my identities ./ssh/config has settings to enable ForwardAgent Passwordless login to the…
Andrew Vit
  • 239
  • 1
  • 2
  • 10
4
votes
1 answer

force ssh to use agent, without fallback to directly accessing the IdentityFile

Company policy requires some ssh keys to be stored securely, e.g. on dedicated USB device. Using keys not stored on the host machine works flawlessly using gnupg with enable-ssh-support, even when multiple keys are used: Host example.com …
anx
  • 8,963
  • 5
  • 24
  • 48
4
votes
1 answer

how ssh-agent process is increasing on every login

i have added the following line in my .bashrc file to start ssh-agent if it is not running. if [ -z "$SSH_AUTH_SOCK" ];then eval `ssh-agent -s`;ssh-add ~/.ssh/my_private_key;fi But every time when i login again the number of ssh-agent process is…
Pawan
  • 41
  • 1
  • 2
1
2
3
9 10