Questions tagged [ssh-agent]

144 questions
0
votes
3 answers

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 they use a mix of Keys, passphrases and others for…
Ryan Smith
  • 43
  • 2
  • 8
0
votes
1 answer

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 dangerous to use Agent forwarding because someone may read my…
grep
  • 161
  • 1
  • 6
0
votes
1 answer

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.example.com # connects > ssh -T…
AJcodez
  • 233
  • 1
  • 4
  • 11
0
votes
2 answers

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

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 ssh -A and maintain a session for extended periods…
tink
  • 1,035
  • 11
  • 20
0
votes
2 answers

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 a few functions and one of the function supposes…
0
votes
1 answer

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 debug1: /etc/ssh/ssh_config line 19: Applying…
d9k
  • 123
  • 1
  • 7
0
votes
1 answer

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 that one host, i get "Could not open a connection to…
gcb
  • 344
  • 1
  • 4
  • 18
0
votes
1 answer

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: in my ansible playbook. I'd like to clone the…
MattC
  • 377
  • 1
  • 4
  • 11
0
votes
1 answer

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 ... ROOTPATH="/Users/qazwsx/project/" cd…
qazwsx
  • 105
  • 3
0
votes
1 answer

ssh-agent not caching one key, but caches another

I'm on Mac OS X 10.9.5 and ssh agent is working just fine for two of my keys (include the main one, ~/.ssh/id_rsa). However, for my AWS key, it asks me for the passphase every time. I'm unsure why. I'd like for it to cache the AWS key until…
Brent
  • 19
  • 3
0
votes
1 answer

Is my private key safe if I use authenticaiton agent forwarding with the ssh -A option?

I love the option to connect to servers via SSH with the -A option, so I can use my private keys on the server. This lets me update git/svn repositories and connect to other servers without the need of uploading the private key to the…
The Shurrican
  • 2,240
  • 7
  • 39
  • 60
0
votes
0 answers

Enable root password on remote server

I'm playing around with ssh-with-rsa-key authorization instead of password authorization and because I'm not really clever I've locked password authorization for root(passwd -l root) on remote server. Also I've deleted my rsa key from local computer…
micgeronimo
  • 101
  • 2
0
votes
1 answer

seamless ssh with condition

I am looking for a way of seamless ssh in a way that when user does ssh through shell, it will be disallowed (or normal rules apply) but if a process (non-interactive) tries to ssh with the same user should be allowed without password. May be some…
ashji
  • 1
0
votes
1 answer

Weird DNS bug - external server resolves to internal IP

I have a server that is hosted by my university. I have root access, but no control over network setup, firewall, etc. This server's DNS resolves to an internal IP here on campus (10.x.x.x), and an external IP outside campus. I also have a few…