Hi!

I use svn over ssh ("svn+ssh"-URL) and it is annoying to repeatedly have to give the ssh-password so I added this script which adds ssh-agent to the menu:

#!/bin/bash
#
# Distributed under the terms of GNU GPL version 2
#
# http://marius.scurtescu.com/?p=102
# http://gnomefiles.org/app.php?soft_id=1059
# Made by Arne HÃ¥rseth

LOGFILE=`mktemp -t svn_update.XXXXXX`

eval 'ssh-agent -s "$@" > $LOGFILE'
ssh-add >> $LOGFILE

zenity --text-info --title="SSH-Agent" --filename=$LOGFILE --width=600 --height=400 --window-icon="`dirname $0`/svn.xpm"
rm -f $LOGFILE

Arne

Reply

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options