Questions tagged [ssh-agent]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1
votes
0answers
15 views

Agent forwarding without PubkeyAuthentication

The linux bastion host I am connecting to does not allow public key auth, but it does allow agent forwarding. PubkeyAuthentication no AllowAgentForwarding yes I am not aware of any method to forward ...
0
votes
0answers
112 views

SSH: Access denied for 'password'. Authentication that can continue: publickey,gssapi-keyex,gssapi-with-mic,password,keyboard-interactive

I could login without a problem before and after 4 weeks of vacation I can't anymore. I have a MAC and im trying to use x2go or terminal to connect to the server. This is what happens when i try to ...
0
votes
1answer
134 views

Avoid use of SSH agent

I use ProxyCommand with the intention of avoiding ssh agent forwarding. Today I noticed that Gnome was starting ssh-agent, which I'm trying to avoid using so I disabled it. I'd like to not have the ...
1
vote
1answer
1k views

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*'} ...
0
votes
0answers
177 views

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 ...
0
votes
1answer
85 views

automatic SSH login with ssh key's dont work after sudo

I have an Ansible server with 3 ubuntu servers (hosts). So i want to be able to logon to those servers by typing in the SSH key password once. I have edited my .bashrc with an alias. alias ssha='eval $...
0
votes
0answers
38 views

ssh does not use ssh-agent when starting from scripts

After upgrading OpenSSH from 6 to 8 version, ssh does not use ssh-agent to connect to some hosts. It's only affected when ssh is run from scripts. From command prompt ssh works fine as I expect. # env ...
0
votes
0answers
74 views

Creating SSH keys on EC2 as root for ec2-user

I am running a start-up script on an Amazon EC2 Linux instance. The only option is to run this script as root as part of the instance reservation, and the only option is to connect as the default ec2-...
3
votes
1answer
259 views

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

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

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 ...
0
votes
1answer
148 views

Reconnect automatically to a disconnected ssh session [closed]

I am new to this community , I am working on my iot project in which my microcontroller is working as a server, taking data and executing request. My client is end device (mobile,tablet) and I am ...
1
vote
1answer
464 views

How to prioritize explicit ssh key from commandline over ssh-agent keys?

I have a bunch of ssh keys loaded semi-permanently into ssh-agent. ssh-add -L lists 6 keys. I also have other keys which are stored separately; let's say, on a USB stick. I exactly don't want to keep ...
0
votes
2answers
450 views

Ansible not honouring `ssh-agent`?

I seem to be having a problem where Ansible isn't using my SSH agent cache. I've run the following: eval `ssh-agent` ssh-add /tmp/key Then I successfully log into one of the hosts from my inventory ...
0
votes
1answer
338 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. I created on VM instance in the GCP then generated pub key by using command ssh-keygen ...
0
votes
1answer
67 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 ...
1
vote
0answers
61 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
1answer
2k 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
375 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
463 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
389 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
279 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
1answer
458 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
391 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
347 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
575 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
2k 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
2k 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
466 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
993 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
570 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....
5
votes
3answers
2k 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
663 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
504 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
1k 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
5k 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
327 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
3k 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
2k 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
1k 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 ...
2
votes
2answers
241 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
428 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 ...
3
votes
2answers
400 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
3k 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
1k 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
340 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
3k 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 ...