[CRIU] [PATCH 2/2] p.haul: use ssh tunneling and controll it with ssh* cmdline opts

Ruslan Kuprieiev kupruser at gmail.com
Tue Oct 28 04:16:26 PDT 2014


On 27.10.2014 23:33, Ruslan Kuprieiev wrote:
>
> Hm, maybe I could ask ssh to execute  -t "echo hello; bash -i", so it
> says hello and continues to work. Might work. But it just tells us that
> ssh connection for tunnel is working and doesn't say anything about
> local bind. Well, establishing ssh connection might be the longest
> thing there. Will try to experiment with it.
>

Yes, "echo hello; bash -i" tells us that only ssh connection was 
established.
It makes race condition a bit less noticeable and in 70% it connects 
successfully,
but in other 30% we still get connection refused. So, yeah, there is no 
other way
to check if ssh tunnel is ready than to try to connect to it.


More information about the CRIU mailing list