On Mon, Jan 14, 2013 at 4:23 AM, Guus Sliepen <<a href="mailto:guus@tinc-vpn.org">guus@tinc-vpn.org</a>> wrote:<br>> On Sun, Jan 13, 2013 at 05:03:28PM -0600, Rob Townley wrote:<br>><br>>> I have the habit of putting the name of the host within the host file<br>
>> as a comment usually on the first line.  Helps when files are renamed<br>>> and tracking.  The new version exports  Name = victor and so the old<br>>> comment style is not necessary.  I would think the new version should<br>
>> still simply ignore lines that begin with the '#' character.<br>>><br>>> For example, a normal host file named victor that also contains the<br>>> following comment line:<br>>> #victor<br>
>><br>>> tincctl --net=mynet import victor<br>>><br>>> fails with "Junk at the beginning of the input, ignoring."<br>>> The import hangs and does not seem to work.<br>><br>> The problem is not the comment at the start of the file, it's that the import<br>
> command does not take another argument. It expects the input on stdin. So, you<br>> should write instead:<br>><br>> tincctl --net=mynet import < victor<br>><br>> Also, the import command only properly works for data generated by the export<br>
> command. If you feed it a raw host config file, it will not work. I'll clarify<br>> the manual and have it print an error message when you add arguments after<br>> "import" or "export".<br>
><br>> --<br>> Met vriendelijke groet / with kind regards,<br>>      Guus Sliepen <<a href="mailto:guus@tinc-vpn.org">guus@tinc-vpn.org</a>><br>><br>> _______________________________________________<br>
> tinc mailing list<br>> <a href="mailto:tinc@tinc-vpn.org">tinc@tinc-vpn.org</a><br>> <a href="http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc">http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc</a><br>
><br><br>i thought i tested it both ways, but i probably did not.  i am very pleased with the ssh examples of exporting and importing.  Slick, but i only have one node on 1.1pre4.  i had already unix2dos my host files, so not sure when i will test again.  Will non-root users be able to execute tincctl.exe import?  <br>
<br>It is worth repeating <a href="http://www.tinc-vpn.org/documentation-1.1/tinc_4.html#How-to-configure">http://www.tinc-vpn.org/documentation-1.1/tinc_4.html#How-to-configure</a><br><i><br>If you are the owner of bar yourself, and you have SSH access to that computer, you can also swap the host configuration files using the following commands:<br>
<br>tincctl -n netname export | ssh <a href="http://bar.example.org">bar.example.org</a> tincctl -n netname import<br>ssh <a href="http://bar.example.org">bar.example.org</a> tincctl -n netname export | tincctl -n netname import<br>
<br></i><br>