Secure Shell
can sshclient execute a local command ? Jul 21 2009 04:59PM
J. Bakshi (bakshi12 gmail com) (2 replies)
Re: can sshclient execute a local command ? Jul 23 2009 10:53PM
"Peter Valdemar Mørch (Lists)" (4ux6as402 sneakemail com) (1 replies)
Re: [SOLVED] can sshclient execute a local command ? Jul 24 2009 03:19PM
J. Bakshi (bakshi12 gmail com)
Re: can sshclient execute a local command ? Jul 22 2009 05:57AM
Aarón Mizrachi (unmanarc gmail com) (1 replies)
Re: can sshclient execute a local command ? Jul 22 2009 04:51PM
J. Bakshi (bakshi12 gmail com) (2 replies)
Re: can sshclient execute a local command ? Jul 23 2009 05:39PM
Aaron Davies (aaron davies gmail com)
On Jul 23, 2009, at 12:51 AM, J. Bakshi wrote:

> well, using the alias is a brilliant idea, but I have multiple hosts
> and they have different fwknop encryption password. That's why I
> stored all the server info at .ssh/config file. It would be helpful
> if ssh can execute local command for individual host prior to its
> connection attempt.

the unix philosophy is "do one thing and do it well". the shell is the
traditional place to handle glue problems like this. e.g., if only one
of your servers needs to be fwknop'd first, something like this:

#!/bin/sh
test "$1" == sekrit.server && fwknop ...
/usr/bin/ssh $*

fill in the server and the fwknop params, name it "ssh", and put it
somewhere ahead of /usr/bin in your PATH.
--
Aaron Davies
aaron.davies (at) gmail (dot) com [email concealed]

[ reply ]
Re: can sshclient execute a local command ? Jul 23 2009 05:16PM
Tim Walberg (twalberg comcast net) (1 replies)
Re: can sshclient execute a local command ? Jul 23 2009 05:28PM
J. Bakshi (bakshi12 gmail com)


 

Privacy Statement
Copyright 2010, SecurityFocus