SSH-agent is an utility which offers a secure way of storing the passphrase of the private key used in SSH connections
1
vote
2answers
149 views
Is it possible to spawn an ssh-agent for a new tmux session?
I've seen lots of hacks for re-establishing contact with a GUI session's SSH agent from within tmux (and screen) sessions. I'm wondering if it's possible to de-couple from the GUI and spawn an ...
2
votes
1answer
125 views
Is it possible to have zsh+keychain+tmux not ask for keys?
I'm using tmux and zsh, and I've recently been learning about ssh-agent and keychain. From the manpage for zsh, it says that it will source .zlogin only if the shell is, well, a login shell.
...
3
votes
1answer
329 views
ssh-agent key timeout with screen or tmux on bastion host
Normally I have ssh-agent running, I ssh to my bastion host then open a tmux session and connect to other boxes through that. Key forwarding works for any sessions that I open from that point ...
23
votes
9answers
7k views
How do you get screen to automatically connect to the current ssh-agent when re-attaching to an existing screen?
If you start a screen session while ssh-agent is running (from ssh -A agent forwarding), accessing ssh-agent works fine. However, if you detach from that session, log out, log in again (with ssh-agent ...
2
votes
0answers
47 views
Launchd not launching ssh-agent after plist edit
I'm trying to reconfigure my ssh-agent to have a timeout via the -t argument.
I edited /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist
<array>
...
0
votes
1answer
49 views
What is required to make SSH agent forwarding work? [closed]
I have a simple set up which I thought would be sufficient for SSH agent forwarding:
ssh -i mykey.pem ubuntu@server1
ssh -i mykey.pem ubuntu@server2
These work (the keys have no password). This ...
1
vote
1answer
43 views
keychain/ssh-agent loading only one key
My ~/.profile contains the following:
SSHAGENT=/usr/bin/ssh-agent
SSHAGENTARGS="-s"
if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then
eval `$SSHAGENT $SSHAGENTARGS`
eval `keychain --eval id_rsa ...
2
votes
3answers
444 views
How to change the number of columns on a putty window to more than the screen width?
I am on windows and often have to ssh to linux machines. Though as much as I would love to have an alternate ssh client, none really comes part to Putty. One thing or the other always breaks, even in ...
19
votes
7answers
5k views
Sharing the same `ssh-agent` among multiple login sessions
Is there a convenient way to ensure that all logins from a given user (ie me) use the same ssh-agent? I hacked out a script to make this work most of the time, but I suspected all along that there ...
1
vote
0answers
25 views
Is the default time for ssh-add configurable in sshd_config?
Is the default time for ssh-add configurable in sshd_config or does it always have to be added on the command line?
0
votes
2answers
438 views
Use a specified key from ssh-agent
Along the lines of Tell git which private key to use
I would like to use a specific ssh key in a given situation.
My problem is that even when I specify '-i something' ssh uses the keys from my ...
0
votes
1answer
59 views
Why does “ssh-agent && ssh-add” only work once?
Have a look at the following shell session:
niklas@llw ~ % ssh-agent && ssh-add
SSH_AUTH_SOCK=/tmp/ssh-ZzWYJAmK8809/agent.8809; export SSH_AUTH_SOCK;
SSH_AGENT_PID=8810; export SSH_AGENT_PID;
...
1
vote
1answer
1k views
How to use ssh-agent (and graphic passphrase dialog) in Kubuntu 10.10?
I have recently switched from Ubuntu to kubuntu, both version 10.10. Unfortunately in KDE the ssh passphrase dialog doesn't work out of the box. Everytime my ssh private key is used I need to enter my ...
1
vote
1answer
55 views
Which ssh-agent to connect to when setting SSH_AUTH_SOCK inside screen/tmux?
I am using a variation of the following line:
export SSH_AUTH_SOCK=$(find /tmp/ssh-* -name agent.\* -uid $(id -u)|head -n 1)
found over at Github. This way I should be able to use my forwarded ...
6
votes
3answers
11k views
How to use SSH private key to log in without entering passphrase every time on Mac OS X Lion?
I use Mac OS X Lion and login remote hosts via SSH every day. Despite the fact that I use SSH key pair for remote authentication and I don't need to motorize every host's login phrase, it is still ...
2
votes
2answers
532 views
How can I retrieve my ssh passphrase from gnome-keyring?
I forgot the passphrase for my ssh private key, but it's still stored in gnome-keyring, so it seems to me that I should be able to recover it. Seahorse lets me recover web site passwords from my ...
0
votes
0answers
105 views
ssh-add not connecting to gpg-agent
I'm trying to get gpg-agent to act as a keyring for my ssh keys, but for some reason ssh isn't picking it up. It starts on login with the following in /etc/profile.d/gpg-agent.sh:
#!/bin/sh
...
0
votes
1answer
320 views
openssh in Windows 7, run ssh-add once for all cmd instances
I have installed openSSH as part of the latest cygwin distribution.
My goal is to use the ssh-agent from native window console (cmd) in order to login passwordless in a various number of Linux ...
11
votes
1answer
2k views
How can I forward a gpg key via ssh-agent?
I can use the ssh configuration file to enable the forwarding of ssh keys added to ssh-agent. How can I do the same with gpg keys?
10
votes
3answers
4k views
How to make ssh-agent automatically add the key on demand?
I want to run ssh-agent (with maximum lifetime option), but not add any keys at startup, but instead add them on demand.
Like first time I login to some server it should ask for passphrase, next time ...
1
vote
1answer
420 views
SSH Agent Forwarding Not Working [closed]
SSH Agent Forwarding stopped working for me.
Any ideas as to what might be going on? I'm attaching my logs below:
Connecting to the server: http://goo.gl/4xxz9
Connecting to github on server: ...
3
votes
2answers
841 views
tmux: Cannot SSH from inside tmux, even though I have agent-forwarding (ssh -A) on
So I have keys to some servers stored locally on my MacBook, but I work from inside a Virtual Machine a considerable amount of time, so I SSH to the VM with ssh -A. This allows me to SSH to servers ...
0
votes
1answer
195 views
msysgit on the command prompt without bash
I've got mysysgit setup with Tortoise with PuTTY and ssh. From the Tortoise side everything is working I can clone, pull, push, etc. If I drop to a command prompt and run git I see the help screen so ...
1
vote
1answer
541 views
Git — SSH Agent not working
The back story -- I've been using Git on this computer (Windows XP) for about 8 months with no problem. Suddenly, last week, it is no longer asking me for my username and password when I start Git up.
...
0
votes
0answers
114 views
rsync not using forwarded ssh credentials
I have a situation where I would like to rsync some files from a remote server to a server in my office. The source server requires key-based authentication and I have an appropriate key set up on my ...
0
votes
0answers
61 views
password-less ssh via keychain
How do I modify:
eval `keychain --eval --agents ssh --nogui -Q -q id_rsa`
such that it doesn't require a password the first time it's run?
0
votes
0answers
180 views
ssh-add password prompt mac keychain
I've got ssh-add with a few identities on OS X. The key passwords are stored in a Keychain Access keychain called secure, which has a password - I'm not storing the keys in the default keychain, so ...
0
votes
1answer
635 views
ssh-agent and ssh-add
Does anyone know how to make it so that I don't have to add my keys manually using ssh-add? Every time I log into my Ubuntu server box, I have to start the ssh-agent and then use ssh-add before my ...
5
votes
2answers
6k views
ssh-agent on MAC OS X Lion - sometimes it requests ssh password
Terminal V. 2.2.2
Mac OS X Lion 10.7.3
I've followed ipsis verbis the steps here:
http://superuser.com/a/8110/72002
This works, BUT, if I restart the machine, it promps for the password again!!!
...
6
votes
4answers
3k views
How can I get ssh-agent working over ssh and in tmux (on OS X)?
I have a private key set up for my github account, the passphrase to which is, I believe, stored in OS X's keychain. I certainly don't have to type it in when I open a terminal window and enter ssh ...
0
votes
0answers
185 views
Make `ssh-agent` use the terminal, not an X app
The ssh-agent X app is irritating. I use a password manager and long random passwords. The password manager (pwsafe) puts the password into the clipboard (using secure ram), so it isn't displayed or ...
1
vote
0answers
48 views
askpass only for tunneled requests
I'd quite like to have the confirm (ssh-add -c keyfile) behaviour from ssh-agent- but only for requests that are tunneled over ssh (ssh -A richo@somewhere).
Is this possible? The manpage seems to ...
3
votes
3answers
4k views
using puttygen generated public keys in unix environment? [duplicate]
Possible Duplicate:
How to convert .ppk key to OpenSSH key *under Linux*?
(unix, here: ubuntu 10.4)
I know how to create ssh key pairs in unix (ssh-keygen) and how to do it in windows ...
0
votes
1answer
123 views
ssh-agent is broken after running Meerkat - can connect to git in terminal but not in Tower - no keychain access
My mac running Snow leopard 10.6.8 is having trouble handling it's ssh keys.
I could previously access all my git repo's via Tower without an issue. The other day I ran Meerkat to see what it was ...
1
vote
1answer
4k views
How do I clear out the ssh-agent entries (on Mac OS X )?
I'm running Mac OS X, and it appears that after SSHing to several machines, using identity files, my 'ssh-agent' builds up a lot of identity / keys and then sometimes offers too many to a ...
2
votes
0answers
266 views
Trouble implementing ssh-agent forwarding across ssh and then su
I've got a web server with a dedicated unprivileged user who runs the apache instance on the box. The php code for the app the web server runs is in a private github repo that I occasionally need to ...
2
votes
2answers
405 views
Problem with ssh-agent and/or Mac keychain on Mac
tl;dr: I have identities in the ssh-agent. All of those but one gets used; one gets added to agent and keychain when I use it, but then I get prompted for the passphrase again and again, as if the key ...
4
votes
3answers
3k views
Remove Mac OS X SSH Passphrase Pop-Up
The ssh-agent on my Mac causes a pop-up for certain hosts:
[me@my-laptop]$ ssh cargo2
Last login: Tue Aug 3 09:26:43 2010 from trainwreck.arlut.utexas.edu
[me@cargo2]$
But for other hosts:
...
0
votes
2answers
172 views
SSh-Agent Bash and Eval and Env
I have been reading about how ssh-agent works and how it relates to the shell environment. I understand why we do eval ssh-agent now (usually in /etc/profile), it makes logical sense. However the ...
5
votes
2answers
3k views
Filezilla on Mac: SFTP with passwordless authentication?
I am trying to follow the instructions here for OSX
http://wiki.filezilla-project.org/Howto
I can successfully ssh to the target server with no username/password (OSX picks up my certificates from ...
8
votes
2answers
445 views
How to stick ssh-agent locking to the windows login?
Is it somehow possible to automatically unlock my private keys forr ssh authentication at windows login and (un)lock them when (un)locking my session?
Currently I'm using msys' ssh-agent but could ...
3
votes
2answers
3k views
How to automatically add a protected key to ssh-agent on startup?
I am using gdm to start awesome wm via .xinitrc.
I like awesomes usability and gnomes integrity and so far most of the startup programs work fine but i am fighting with ssh-agent. When starting gnome ...
2
votes
1answer
535 views
How to save ssh identity settings in Snow Leopard?
I'm using ssh settings from my work machine on laptop at home for unattended git repository connection. I've copied private and public keys and use ssh-agent w/ ssh-add identity command. Is there any ...
1
vote
0answers
246 views
How to use ssh-agent.exe without cygwin for pass-phrase protected private key?
I would like to access a SSH service with pass-phrase protected private key in Windows using ssh-agent.exe.
So far I able to utilize ssh-agent.exe by changing environment setting in my home account ...
1
vote
1answer
296 views
What is the disadvantage to having SSH Agent forwarding turned-on globally
My SSH tool (SecureCRT) offers a config option to turn on Agent Forwarding for all SSH sessions. That seems to be helpful to prevent forgetting to enable it when required, but I'm wondering if there ...
1
vote
0answers
279 views
gpg-agent asks for ssh password, although the private key has no password set
I am using gpg-agent to manage my github ssh key. I generate my (private) ssh key via openpgpg2ssh from my private gpg key. Unfortunately, although my private gpg key is not password protected, ...
5
votes
2answers
2k views
Can't remove keys from ssh-agent. Even rebooting doesn't help
A short time ago I noticed that there were three keys in my ssh-agent that I could not delete. ssh-add -l showed three keys; I ran ssh-add -D, and was told "All identities removed."; but then an ...
11
votes
2answers
1k views
How, if at all, do SSH keys differ from asymmetric keys used for other purposes?
How, if at all, do SSH keys differ from asymmetric keys used for other purposes, e.g. email signing?
I'm prompted to ask this, in part, because on OS X, there are apps available to manage SSH keys ...
2
votes
2answers
138 views
Automate Backups over SSH on a Linux Desktop
I currently have a setup which allows me to connect to all computers on my home network via SSH and RSA keys. I'm very security-conscious, so all of my keys are passphrase protected. I'd like to ...
3
votes
1answer
1k views
Agent Forwarding Through Different Usernames (Git & Deployment)
This query isn't directly related to Git, but since one of Git's supported transports is SSH, and I'm trying to use agent-forwarding, I thought I would ask for clarification (the man pages have let me ...
