SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-04-29 18:14:07

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2012-03-22
Posts: 1,026
Website

gnome-keyring for ssh (instead ssh-agent)?

OK, I have replaced my Ubuntu 10.10 with #!, then 'upgraded' to wheezy (had problems with vlc, but never mind), and now I'm configuring my system to my needs and preferences. I must say it is pure pleasure to edit plain text config files ...

One of the preferences I like is a ssh-agent and ssh-add, for storing my ssh keys (I do a fair amount of ssh-ing).

THE PROBLEM: I want to 'ssh-add' my key to the 'ssh-agent', but I don't want to be asked for the passphrase every time I reboot the computer. And, of course, my ssh key is passphrase-d ('ssh-add's are lost between reboots).

THE SOLUTION(?): it seems that the answer is in gnome-keyring, however, the documentation seems to be a sort of 'overwhelming' for an inexperienced user as myself, so the question I want to ask is: how should I use gnome-keyring (and its 'ssh-agent'), instead of 'ssh-add' and openssh's ssh-agent?

Additional info:
- I have gnome-keyring-daemon running after I log-in
- I have openssh 'ssh-agent' running after I log-in
- when I execute

$ thunar sftp://username@server/somedir/

small dialog has opened first time, with three options 'Forget pass immediately', '(I forgot middle one)' and 'Nevar forget' (actually, the last one is 'Remember forever'). Selecting 'Nevar forget' is doing its job: I do not need to enter password even after the reboots (therefore, gnome-keyring seems to be working)
- instead of permanently remembered keys, I have to do:

$ ssh-add  # it adds my private key to the 'ssh-agent'

(now I am asked for the passphrase for my key, and it has too be done only once 'per reboot')

$ ssh somesite.xxx   # it connects seamelessly to the somesite.xxx; no password asked

Sorry for long post .... I hope it will not be TL;DR

Last edited by iMBeCil (2012-04-29 18:15:18)


Postpone all your duties; if you die, you won't have to do them ..
--> The very new BL forum! <--

Offline

Help fund CrunchBang, donate to the project!

#2 2012-09-01 19:03:26

redbmk
New Member
Registered: 2011-12-30
Posts: 2

Re: gnome-keyring for ssh (instead ssh-agent)?

Did you ever find a solution for this? I'm also annoyed with having to type in my ssh passphrase after every reboot. I have this set up on my Ubuntu machine (I believe I'm using gnome-keyring, although I set it up last year and don't really remember the process). It would be nice to get it working on #! also

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo