0
votes
1answer
21 views

How to forward SSH agent connection to unqualified hostnames by default?

I have a number of local domains in my resolv.conf search order. I would very much like to forward SSH agent by default when I connect to an unqualified (without DNS suffix) hostname. The best I've ...
0
votes
0answers
12 views

How to lock pageant the same way ssh-add -x does?

Now that i understand how to highjack SSH_AGENT_SOCK & how to use it, it scares me that a fellow coworker, by having root access on any of my company server, might access to my personnal NAS. I ...
0
votes
1answer
45 views

OSX: ssh-agent caching passphrases…but when cleared?

I have a ssh RSA key in a client OSX 10.9.4. The SSH server is ubuntu. Everything works OK, but the problem is that my OSX ssh-agent seems to be caching the passphrases. The first time I ssh, it is ...
1
vote
2answers
48 views

copy between remote server with local authentication

When I need to copy some files between two remote servers, I usually scp -3 user@server1:path user@server2:path unfortunately, since that routes traffic through my machine, that is very slow when ...
3
votes
2answers
921 views

SSH key problems: Not a RSA1 key file unknown key type '-----BEGIN'

A backuppc server is able to sign into remote machines as root and backup them up, but if I sign in as the backuppc user and try to ssh into these machines using the same key, the key is rejected with ...
2
votes
1answer
58 views

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

Use a specific forwarded key from SSH-agent?

Let's say I have a key for Github, along with other keys. I've added lots of keys to my ssh agent (ssh-add -L returns lots of lines) at my home computer A. In my .ssh/config I have set up which key to ...
0
votes
2answers
7k views

SSH: Permission denied (publickey,gssapi-with-mic,password)

==================================================================== UPDATE: It turned out the configuration of sshd on host2 wont allow password login. Thanks to people answered this. Also don't ...
2
votes
2answers
345 views

SSH authentication between my VPS and Bitbucket fail

I'm trying to setup SSH authentication between my VPS and Bitbucket for configure later automatic deployment via Capistrano (for web projects) and Capifony (for Symfony2 projects) so I follow this ...
1
vote
2answers
157 views

ssh-agent needs to start each time on my server

I have used this bitbucket tutorial for providing ssh access to the git repo: https://confluence.atlassian.com/pages/viewpage.action?pageId=270827678 But now each time I want to use the git it says I ...
2
votes
2answers
182 views

SSH key and ip address

A co-worker keeps mentioning SSH keys being associates with an IP address but Im not sure what it exactly means. So i tried generating a SSH key and it had my host name at the end of the file. This ...
0
votes
0answers
18 views

ssh-add is required before each git push

Before I can git push / pull or capistrano deploy (using agent_forward => true) I have to run ssh-add command. If I try without this I get a publickey failure. Does anyone know why ssh-add is not ...
0
votes
0answers
65 views

SSH between macs in a local environment, full control on each?

I'm attempting to use my Mac Mini as my "central server" in my local environment and then I develop on it, it runs nginx, php-fpm, etc. Everything is working fine. But I wish to do capistrano ...
3
votes
1answer
625 views

SSH ForwardAgent multiple hops

I've been looking for a solution to the following problem for the past 2 hours with no luck. Development: I'm using publickey authentication to connect to my servers. I use ssh-agent forwarding in ...
0
votes
1answer
441 views

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 ...
1
vote
3answers
1k views

Running ssh-agent from a shell script

I'm trying to create a shell script that, among other things, starts up ssh-agent and adds a private key to the agent. Example: #!/bin/bash # ... ssh-agent $SHELL ssh-add /path/to/key # ... The ...
0
votes
0answers
101 views

ssh-agent doesn't seem to end when user disconnects

On one of the servers that I manage i've just noticed that there are hundreds of "ssh-agent" processes running. I'm at a loss as to where to even start here. Is there something that I've forgotten to ...
2
votes
2answers
310 views

ssh-add Has No Effect

I'm trying to add password-less ssh access to my Mac OS X 10.8.3 that acts as a server. I've followed instructions like this: http://osxdaily.com/2012/05/25/how-to-set-up-a-password-less-ssh-login/ ...
3
votes
2answers
103 views

Discrepancy in ssh-agent behavior

It seems like i'm having a bit of a discrepancy between the behavior of ssh-agent for two accounts I have configured. I wrote a simple monitoring script to check on the availability of some VMs we ...
4
votes
2answers
83 views

SSH: prevent from asking for passphrase when ssh-agent auth fails

I am writing a script to cycle through a list a known hostnames so as to find a working SSH server on which I can auth with my SSH key. The key is already loaded with ssh-agent and ssh-add, so if I ...
0
votes
1answer
105 views

Reverse ssh-agent forwarding. Using a remote ssh key

I have my github.com private ssh key in an ssh-agent on a key server. From my home computer behind NAT I want to run git pull and use my github ssh key. The only way I know of doing this is to ssh ...
1
vote
1answer
152 views

Retain agent-forwarding in sudo

I want to be able to connect to a server, start a sudo shell, then use agent forwarding to connect to another server (in order to use SCP to copy files to a protected area). But: ...
2
votes
3answers
2k views

12.04LTS - could not open a connection to your authentication agent

I'm working on adding ssh authentication to a fresh Linode Ubuntu 12.04LTS deployment. I followed their guide to the letter up to the point where I need to ssh into the box with my now freshly added ...
1
vote
3answers
1k views

Forgot the password for an encrypted SSH key that's in my (gnome) SSH agent. How do I extract unencrypted version? [closed]

OK, I have an encrypted ssh private key that provides access to a server. My Ubuntu GNOME desktop has an integrated graphical ssh agent (seahorse v3.2.2). That ssh key is in this ssh agent and it's ...
2
votes
2answers
522 views

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

How to get an Ubuntu root account to forward ssh keys as the forwarding machine

UPDATE: the whole thing described below works fine for non-root accounts on the remote machine. That is, this works: anderson@client -> nonroot@remote -> anderson's-ssh-key@github.com This ...
0
votes
1answer
39 views

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 ...
3
votes
2answers
517 views

SSH agent forwarding on debian squeeze

Im trying to set up SSH forwarding like this osx > debianA > debianB I can connect to debianA fine, using ssh -A and it has the following env vars when i do: SSH_AGENT_PID=1543 ...
3
votes
1answer
394 views

Accessing SSH_AUTH_SOCK from another non-root user

The Scenario: I am running ssh-agent on my local PC, and all my servers/clients are setup to forward SSH agent auth. I can hop between all my machines using the ssh-agent on my local PC. That works. ...
0
votes
0answers
223 views

ssh key forwarding works with -i flag but not with IdentityFile in config

I'm trying to get ssh key forwarding to work so that I can ssh to a server and then use my local private key to then access another server. All works fine if I do ssh -A -i <identify file> ...
3
votes
2answers
534 views

Choose identity from ssh-agent by file name

Problem: I have some 20-30 ssh-agent identities. Most servers refuse authentication with Too many failed authentications, as SSH usually won't let me try 20 different keys to log in. At the moment, I ...
1
vote
2answers
816 views

Be able to pull from git without password on login or just run keychain which does it for me

I need to pull from Github all the time and I have a passphrase, but it's a pain, so I typically run... ssh-agent bash ssh-add ~/.ssh/id_rsa <prompt and give passphrase> git pull ... And ...
2
votes
1answer
436 views

Any tricks for making sshfs authenticate only on write?

There is seemingly a trick for creating read-only sshfs logins with the read only attribute is enforced by the remote's ~/.ssh/authorized_keys file. You first create a program ~/.ssh/ro-sftp-server ...
1
vote
1answer
330 views

Can one config LDAP to accept auth from ssh-agent instead of from Kerberos?

[This question is not about getting your LDAP password to authenticate you for SSH logins. We have that working just fine, thank you :-) ] Let's suppose you're on a Linux network (Ubuntu 11.10, slapd ...
4
votes
3answers
425 views

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? ...
3
votes
1answer
102 views

ssh agent authorization in a detached screen session

I have an ssh script which use ssh key forwarding on a remote system to do thing in even more remote systems. I have to run the script in a screen session so that I can detach from it. But the ...
1
vote
1answer
719 views

sshfs automount with password-enabled ssh key and ssh-agent in ubuntu

I currently set up sshfs automount on ubuntu per this thread. It's nice because of the network up and down scripts. The benefit comes at a cost: it requires passwordless ssh via an ssh key. I was ...
4
votes
1answer
1k views

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

How to use ssh to copy a file multiple hops with agent forwarding?

I have a group of servers all properly configured with SSH agent forwarding. It is a typical bastion server style configuration where the only machine you can connect to from the outside is server A. ...
0
votes
2answers
963 views

Ssh-agent won't run on Ubuntu Oneiric

I have installed Ubuntu 11.10. I'm being confused by the ssh-agent behavior: when I enter the command I get the following output: SSH_AUTH_SOCK=/tmp/ssh-qKBOsDj10698/agent.10698; export ...
1
vote
2answers
503 views

SSH client not showing prompt after successful login

I'm having problems with my SSH client on Ubuntu 10.10. When I switch on my computer and open a Terminal and execute the command ssh user@host, it gives me a password prompt after which I enter the ...
4
votes
2answers
225 views

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 ...
0
votes
3answers
900 views

ssh-agent forwarding Ubuntu 10.04.03 LTS

What started as an annoying issue a few weeks back, is now driving me mad! At home, I have a Ubuntu 10.04.03 box which acts as a fileserver. I backup things on it via rsync from other boxes, outside ...
0
votes
3answers
3k views

passwordless ssh not working

I've tried to setup a password-less ssh b/w A to B and B to A as well. Generated the public and private key using ssh-keygen -trsa on both the machines. Used the ssh-copy-id utility to copy the ...
2
votes
1answer
332 views

Why does ssh-agent have SGID set?

In the openssh Red Hat package, I noticed that the ssh-agent executable has the SGID permission set: $ ls -l /usr/bin/ssh-agent -rwxr-sr-x 1 root nobody 113648 Nov 24 2010 /usr/bin/ssh-agent Why ...
3
votes
1answer
2k views

SSH-agent & SSH-add at reboot

Situation: Running Ubuntu 10.04. I have a bash script that tar's a bunch of folders and copies them to another host over ssh. I've copied the public key to the other host so it doesn't prompt for a ...
2
votes
1answer
5k views

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

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 ...
2
votes
3answers
720 views

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 ...
2
votes
3answers
3k views

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 ...