Re: ssh setup: what is the Debian way? [not what I asked for, but OK ]
On Mon, Apr 09, 2007 at 01:02:07PM +0200, Vincent Lefevre wrote:
> On 2007-04-08 21:24:00 -0600, Paul E Condon wrote:
> > So, I learned a lot about what doesn't work for me. I settled on
> > adding the following to my .bashrc:
> >
> > if [ -x /usr/bin/ssh ] && [ -d ~/.ssh ]; then
> > function ssh {
> > if [ "The agent has no identities." = "$(ssh-add -L)" ]; then
> > ssh-add
> > fi
> > /usr/bin/ssh $@
> > unset -f ssh
> > }
> > fi
>
> I do something similar (but with zsh, as it is my shell), but also
> with the other ssh commands:
>
> ssh() { ssh_wrapper ssh "$@" }
> slogin() { ssh_wrapper slogin "$@" }
> scp() { ssh_wrapper scp "$@" }
> sftp() { ssh_wrapper sftp "$@" }
>
> IMHO, this is better: if I don't need to use ssh in the session,
> I won't have to type my passphrase.
Is ssh_wrapper available in Debian? What does it do? I get no hits
in Google for 'ssh_wrapper Debian'.
--
Paul E Condon
pecondon@mesanetworks.net
Reply to: