Questions tagged [ssh-agent]

144 questions
0
votes
0 answers

The ssh agent cannot 'resolve hostname' when called from within a bash script

I have a bash script #!/bin/bash scp -r some_directory remote_host:~ which I made executable with chmod u+x. The remote_host has been defined in my .ssh/config as follows: Host remote_host HostName…
Marlo
  • 105
  • 6
0
votes
1 answer

How to specify identity when using SSH agent?

I've got a slightly unusual use-case... I'm using SSH via certificates, (where the authentication mechanism isn't just a signature from a private key, but also presentation of a signed cert). I have many endpoints/servers and different environments…
Woodstock
  • 103
  • 1
  • 1
  • 11
0
votes
2 answers

Why isn't ssh-agent a background process by default?

I have always wondered why such a basic feature (loading ssh keys for persistent usage) requires a clunky command to execute in the background of a cmdline. Why isn't ssh-agent a service (for example) by default? I assume there might be a security…
rosstex
  • 133
  • 1
  • 5
0
votes
1 answer

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 agent running so I can't accidentally start…
Gus
  • 127
  • 2
  • 11
0
votes
1 answer

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 $(ssh-agent) && ssh-add' Whenever i login to the…
0
votes
1 answer

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 and upload in the WinSCP…
0
votes
1 answer

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 ssh-agent to load my password-protected key into…
-1
votes
1 answer

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 remotely. For those 4 pis, I used autossh in this…
dotslash
  • 219
  • 3
  • 16
-2
votes
1 answer

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 droplet if I try to ssh as root to the server it…
thenetimp
  • 231
  • 2
  • 3
  • 12
1 2 3
9
10