NavigationtagsRecent comments
User login |
gtk dialogs for (shell)scripts with zenity and the ask-pass gui tools for ssh-addPhew! where to start? Probably at this blogpost. It's about making it very easy to work with external encrypted volumes. I'm not going to talk about the article itself but about a great tool i discovered thanks to it: Zenity. It's an LGPL-licensed program written in C by some guys from Gnome and Sun. You can call it from any script and present a user with a gtk widget such as a password-dialog, filechooser, calendar, ... It has many possibilities. This immediately made me think of using this together with ssh-add, because i was getting a bit tired to open a console and add my key by typing the ssh-add command for every X session. (For the record: ssh-add without any arguments is enough for most users: it looks for keys with default names, but i have multiple keys with some speial names so...) Of course I realized I was probably not the only one with this idea so I googled a bit and looked in the ssh-add manpage, and I found out some cool stuff! When the $SSH_ASKPASS variable is not set, ssh-add will try to execute /usr/bin/ssh-askpass by default. I figured this out by typing this in a console:
I decided to install ssh-askpass-gnome even though I use xfce. And it works great :D After installing this you can just put your ssh-add line in the settings panel called "autostarted Applications" from Xfce and for your next session it will show a nice gtk popup to ask for your password and it works like a charm :) Trackback URL for this post:http://dieter.plaetinck.be/trackback/33
Submitted by Dieter_be on Sun, 11/25/2007 - 19:45. categories [ ]
|
Post new comment