Thanks again! I have completely missed this new feature of ssh.
On 2/3/13, Mantas Mikulėnas wrote:
> On Wed, Jan 30, 2013 at 12:52 AM, Igor Bukanov wrote:
>> On 29 January 2013 00:25, Mantas Mikulėnas wrote:
>>> systemd only handles accepting connections, but does not copy any
>>> data – ssh's
On Wed, Jan 30, 2013 at 12:52 AM, Igor Bukanov wrote:
> On 29 January 2013 00:25, Mantas Mikulėnas wrote:
>> systemd only handles accepting connections, but does not copy any
>> data – ssh's stdin & stdout are attached directly to the socket.
>
> Right, how can I missed that socket<->stdio bindin
On Mon, Jan 28, 2013 at 11:40 PM, Igor Bukanov wrote:
> I would like to forward-on-demand a local port to remote one over ssh.
> Currently as a hack I use a socket unit with accept=yes together with
> a service template unit that looks like:
>
> [Service]
> ExecStart=-/usr/bin/ssh options sever nc
I would like to forward-on-demand a local port to remote one over ssh.
Currently as a hack I use a socket unit with accept=yes together with
a service template unit that looks like:
[Service]
ExecStart=-/usr/bin/ssh options sever nc localhost port
StandardInput=socket
This works, but rather ineff