Questions tagged [ssh-agent]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
27 views

How to Connect GCP , VM machine with WinSCP

I created Virtual machine (VM) instance in the GCP but unable to connect with WinSCP from the windows machine.
0
votes
1answer
23 views

Using Password-Protected SSH Keys for Unattended Scripts on Remote Server

From PC1, I SSH into SERVER1 where I have a bash script, that will SSH & auth to SERVER2 using an SSH-key that's password-protected. Everything works fine when I manually execute my script, using ...
0
votes
0answers
20 views

SSH agent forwarding not working on LSF when using BSUB

At my institute we have a cluster that runs LSF. Via this cluster, I want to connect to other computers/servers using Agent Forwarding. This works fine when I am on the login node, however when I am ...
0
votes
0answers
17 views

How To Pass Multiple SSH-Keys for Multiple Inline Auths

BACKGROUND: We're using a reverse proxy solution. There is always an auth to the reverse proxy, and then the final host it connects us to. I'm attempting to pass multiple SSH-KEYS, one for the proxy, ...
0
votes
0answers
85 views

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 ...
1
vote
1answer
88 views

too many ssh-agent process per user on several servers [closed]

Several users seem to have problems with the usage of ssh-agent in their login environment. sri for instance has 1295 of them running on login02. And many other users are having same issue. I am ...
1
vote
0answers
95 views

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] ...
1
vote
1answer
244 views

SSH agent forwarding is not working when SVN+SSH

I'm trying to automate the deployment of an SVN repository (with a web app) over multiple production servers, without installing any private key on the servers. The SVN server is hosted on srv3, and ...
1
vote
1answer
162 views

Is there a way to do SSH password-less login when the server only allows keyboard-interactive authentication?

Suppose I've got a server foo.com which only allows keyboard-interactive authentication, and that I can't change this. This means I can do, sshpass -p PASSWORD ssh foo.com but I can't create public/...
0
votes
0answers
45 views

Apache goes down when I run grep commands on SSH2 using PHP SSH2 connect

I am trying search by keyword in the whole log folder by using grep command and I am sending it through ssh2_connect from php to a remote server, when i run the script it puts down the APACHE and goes ...
0
votes
1answer
205 views

rsync not using the ssh-agent?

I have this running on gitlab ci, and it works for regular ssh (copied from the gitlab ci docs): eval $(ssh-agent -s) ssh-add <(echo "$SSH_PRIVATE_KEY") mkdir -p ~/.ssh echo -e "Host *\n\...
1
vote
2answers
165 views

How to keep ssh-agent always runnning on Ubuntu server

I'm trying to set up backing up some folder from one server (target server) to another (backup server) using rsync. I also need to call rsync from backup server so it's easier to maintain backup ...
2
votes
1answer
212 views

SSH ignores key in agent and keeps asking for key decryption password

In my ssh_config, I have configured SSH to use a specific key when connecting to a host. I want SSH to try only this key, not any other key it may find (in ssh agent or some other location), so I ...
1
vote
2answers
334 views

Does SSHFS support ssh-agent forwarding?

I'd like to be able to mount my backup server on-demand by using my keys on my client terminal only as I don't leave my SSH keys on servers I manage. Does SSHFS support ssh-gent forwarding and how? ...
0
votes
3answers
1k views

Allowing SSH To use ssh-agent in bash script

I am working on recon for a set of systems my company is taking over and they use a different authentication method than we do. Specifically we use AD auth and a jump server to access systems where ...
0
votes
1answer
1k views

How to use socket file to access server if SSH Agent forwarding is enabled

I have bastion host. I connect to the bastion host using username/password. And I have private key for destination Server. Flow: Local Machine -> Bastion -> Destination I know that It's ...
0
votes
1answer
370 views

Securely sharing SSH access in a team with SSH bastion

I need to share SSH access to a number of servers with my teammates and looking for a secure way to do it. I came up with a configuration involving a SSH bastion server, but not sure how (and if) it ...
1
vote
1answer
628 views

Rewrite / Redirect Host With SSH Config File?

My company has three separate jump hosts. Something like: jump1.example.com, jump2.example.com, and jump3.example.com All internal servers must be accessed through these jumphosts: local ---> ...
0
votes
1answer
446 views

How to configure SSH agent to set user for second hop?

Is it possible to connect to a web server and then connect to a git server using SSH agent if the second hop needs a different user? It works if I pass in the user name explicitly. $ ssh web....
4
votes
3answers
955 views

Force the use of a gpg-key as an ssh-key for a given server

I configured ssh to use GPG as my ssh-agent and if I remove the ~/.ssh folder, I can ssh into my server fine using my gpg key. However, my ~/.ssh folder has over a dozen different ssh keys in it, and ...
2
votes
1answer
413 views

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 ...
-2
votes
1answer
358 views

ssh force user to user ssh-add

I am trying to understand how this functionality works. I have digital ocean account. I have given digital ocean an ssh public key to associate with any server that I spin up. Once I've created a ...
2
votes
1answer
2k views

pssh and ssh-agent key forwarding via jump host

I'm trying to connect to a number of hosts using pssh in combination with a jump host and ssh-agent key forwarding. Unfortunately this fails quiet regular, but with different hosts failing on. So ...
0
votes
2answers
976 views

Using virt-manager with seahorse instead of ssh-askpass?

On my Arch Linux virt-manager can not connect remote ssh and tells about installing ssh-askpass. As I wan't to use the gnome default seahorse, I was looking for a solution which I didn't find on the ...
2
votes
2answers
2k views

How can I check lifetime of SSH keys loaded to agent?

I'm using OpenSSH on Linux. For securioty reasons, when I load keys to agent, I use -t option, to limit time of availability of the keys (generally for 10 hours or so). Is there any way to list all ...
0
votes
1answer
286 views

ssh, agent forwarding stops working after a few days …

I've been facing an interesting issue for a few weeks now. Part of our fleet is only reachable via a jump-host. In the past I had no issues w/ logging into the jump-host from my workstation using ...
10
votes
2answers
2k views

In which order does OpenSSH try private keys?

I'm having a hard time finding proper docs on the order in which the OpenSSH client tries private keys for authenticating against a server, given that all of the following are present: key files with ...
3
votes
1answer
988 views

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 ...
0
votes
2answers
971 views

shell script for running ssh-agent

Good day, I have read through the similar topics all day long but unfortunately could not find the answer suitable to my situation. So here is what I'm trying to do. I have the shell script with quite ...
1
vote
2answers
194 views

Making ssh agent available in screen after I logout

What is the best way to enable a command running in screen on a first machine to continue to be able to run commands on a second machine after I am no longer connected to the first? Here is the ...
3
votes
1answer
1k views

What is the maximum number of private keys you can use via SSH Agent (Pageant)

While answering Re-using SSH keys I had a question of my own, is there a limit to the number of ssh keys you can hold in ssh agents? (and/or putty pageant). (as a test, I loaded 10 keys into my ...
1
vote
2answers
313 views

`ssh` client not offering the 2nd key in my agent, only offers my default key - what's going on?

I have a second SSH key in my agent, which I added with ssh-add. It comes after my default key, which lives at ~/.ssh/id_rsa. I have a server that has the 2nd key's public key added to it's ...
1
vote
1answer
35 views

Open-SSH Windows Bad Auth Request

I'm trying to use OpenSSH for Windows (Server 2012 R2). I am able to authenticate (using username and password for now) however despite logging in fine it actually shows this error in the log: 2532 ...
2
votes
2answers
237 views

SSH agent forwarding fails depending on intermediaries

I am getting a permission denied when trying to connect over SSH with agent forwarding. I have four machines: my local box (me), a private server (private), a public gateway that can route to the ...
5
votes
1answer
2k views

ssh - retrieve public key from ssh-agent

I am searching for a way to extract the public key from the authentication agent. I want to be able to write the public key out into a file, after i added the key to the ssh-agent (ssh-add ~/.ssh/...
-1
votes
1answer
987 views

How to have multi SSH reverse connections using autossh?

I used autossh in my raspberry pi to connect to one of my VPS. But I have 4 raspberry-pi(s). I used the same script to connect to my remote VPS, so that I can login in every raspberry pi anytime ...
1
vote
1answer
317 views

Prevent duplicates when launching ssh-agent in upstart script

As part of an Upstart script, I need to launch ssh-agent to load a GitHub deployment key, so in the script I have: eval "$(ssh-agent -s)" ssh-add $HOME/.ssh/id_rsa The problem is that when the ...
0
votes
1answer
2k views

ssh: Could not resolve hostname add: Name or service not known

I created non-sudo user and I can't add ssh key while logined with it: % ssh -vvv add ~/.ssh/mykey OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config ...
1
vote
1answer
247 views

ssh-add -l multiple entry for the same private key

192-168-1-103:~ josh$ ssh-add -l 4096 SHA256:4fFdwJ71VIH8rucL9y/3U7jxjctaFcAKmdQZPEqR0Y4 /Users/josh/.ssh/id_rsa (RSA) 4096 SHA256:41kNx5H5yDf1mv6ZNS5W5nSI77WU5qhajLYHvUe6/1A /Users/josh/...
1
vote
1answer
48 views

how to restrict ssh-agent to trusted applications only?

Is there a way to prevent an application from using my ssh-agent keys? I started using an application that uses ssh to access my remote server (possibly for a legitimate reason, according to the ...
0
votes
1answer
997 views

ssh ForwardAgent, “Could not open a connection to your authentication agent.”

I have ForwardAgent yes for a few hosts. One of them started failing recently and I can't find the reason. when I ssh to all hosts and execute ssh-add -l i can see one key just fine. If i ssh to ...
1
vote
1answer
2k views

Jenkins: use ssh-agent and git plugins together

So, I have the following situation: a server with dedicated users for each project (e.g. foo) and a jenkins server which runs as a jenkins user. I've generated an SSH key pair for my foo user and ...
1
vote
0answers
747 views

Enabling SSH for deploy of a bitbucket git repo

I'm trying to deploy my git repo to my server. To make this work I first needed to setup ssh on my locale computer and on my server. for bitbucket I followed https://confluence.atlassian.com/...
0
votes
1answer
705 views

Ansible, Vagrant, sudo and ssh-agent

So I've seen this question and added the Defaults env_keep+=SSH_AUTH_SOCK into my /etc/sudoers file but I am still unable to clone from github on my Vagrant box using sudo: true and sudo_user: <...
0
votes
0answers
324 views

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 ...
1
vote
0answers
265 views

sshpass like ssh-agent or vice versa

I like to hold ssh logins for the runtime of a script. For public key authentication, ssh-agent can be used, allowing me to enter the key passphrase once when the script is started. However, that ...
1
vote
1answer
484 views

Openssh in VM authenticate using Pageant on host

Update: It looks like the network design was completely wrong and the auth flow should be the other way round instead. So this question is moot now. Current setup: Linux VM (assume common and most ...
3
votes
2answers
3k views

SSH by key incredibly slow

SSH connecting with key, from my machine suddenly got incredibly slow (~10sec!). It is not a server or DNS problem as far as I can figure out. The problem suddenly appeared after a simple apt-get ...
5
votes
2answers
36k views

ssh server config - input_userauth_request: invalid user

I have a problem configuring my SSH server to be able to log in with public key, without password. tail -f /var/log/auth.log gives Feb 6 14:56:06 ubuntu sshd[24654]: rexec line 26: Deprecated ...
0
votes
1answer
141 views

How to do SSH authentication and CVS update automatically from cron job?

I call a script from cron job. In the script it needs to run CVS commands to update from a remote repository. To do that, it needs to SSH authenticate. I put the following code in the script ... ...