Re: ssh_config way to run command before connecting or "around" the connection?

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



Just to add - google "ppp over ssh" or similar and you'll get tons of
examples (note, don't do the ppp thing if you have tap/tun)

On Thu, Oct 30, 2014 at 8:58 PM, Iain Morgan <imorgan@xxxxxxxxxxxx> wrote:
> On Fri, Oct 31, 2014 at 00:56:57 +0100, Christoph Anton Mitterer wrote:
>> Hi.
>>
>> Is there a way via ssh_config (i.e. not talking about shell script
>> wrappers around ssh, which of course could somehow do the job) to start
>> a command before ssh connects?
>>
>> I think about e.g. a command (or series of commands) that does provide
>> the necessary credentials (e.g. kinit, aklog) or perhaps does some port
>> knocking on the remote server to open up ssh.
>>
>>
>> Even better would be (well especially with looking at kerberos) to have
>> and additional option to have the actual session process started by
>> another command, e.g. k5start[0] or krenew[0].
>> That would make it much easier to handle connections that go to
>> different realms.
>>
>>
>> Perhaps at least the later can be done with ProxyCommand?
>>
>
> The traditional answer would be "use a shell script or alias." However,
> in some cases you could probably abuse ProxyCommand to do your bidding
> -- keeping in mind that its stdio is connected to the ssh process.
>
> If you are using the latest OpenSSH, you might also be able to abuse teh
> "Match exec" support. However, I'm not sure if that will work if the
> command requires user input. I suspect that it won't.
>
> --
> Iain Morgan
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev@xxxxxxxxxxx
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux