Hi all, I'm trying to setup tinc on 2 VPSs following this guide: https://www.linode.com/docs/networking/vpn/how-to-set-up-tinc-peer-to-peer-vpn/ They are of the same type with Ubuntu 18.04. On the the first one, I have manually built and installed tinc without an issue (v.1.0.36). On the second one, I've installed tinc from the repo (v.1.0.33), then removed it and then built it and installed it (v.1.0.36) manually. There was no error during the installation. Now when I try to create the keys I'm getting this error: $ sudo tincd -n linodeVPN -K 4096 Cannot open config file /usr/local/etc/tinc/linodeVPN/tinc.conf: No such file or directory Failed to read `/usr/local/etc/tinc/linodeVPN/tinc.conf': No such file or directory Generating 4096 bits keys: Done. Please enter a file to save private RSA key to [/usr/local/etc/tinc/linodeVPN/rsa_key.priv]: Error opening file `/usr/local/etc/tinc/linodeVPN/rsa_key.priv': No such file or directory Any ideas what went wrong and how can I fix it? Regards, Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20191109/5c900d26/attachment.html>
On 2019-11-09 19:16, Nick Gilmour wrote:> $ sudo tincd -n linodeVPN -K 4096 > Cannot open config file /usr/local/etc/tinc/linodeVPN/tinc.conf: No > such file or directory > Failed to read `/usr/local/etc/tinc/linodeVPN/tinc.conf': No such file > or directory > Generating 4096 bits keys: > > Done. > Please enter a file to save private RSA key to > [/usr/local/etc/tinc/linodeVPN/rsa_key.priv]: > Error opening file `/usr/local/etc/tinc/linodeVPN/rsa_key.priv': No > such file or directoryDoes this directory exist? /usr/local/etc/tinc/linodeVPN/ Tomasz Chmielewski https://lxadm.com
> Cannot open config file /usr/local/etc/tinc/linodeVPN/tinc.conf: No such > file or directory > Any ideas what went wrong and how can I fix it?sudo mkdir -p /usr/local/etc/tinc/linodeVPN ALBI...
Thanks for the response! With: sudo mkdir -p /usr/local/etc/tinc/linodeVPN I was seeiing this in the logs: Couldn't write pid file /usr/local/var/run/tinc.linodeVPN.pid: No such file or directory So I ended up doing this: $ sudo ln -s /etc/tinc/linodeVPN/ /usr/local/etc/tinc/ which seems to have solved this issue (there were some other errors, but I think they are not related). However, I still find weird that such an error appeared on one machine and not on the other one, since there is not a folder like this: /usr/local/etc/tinc/ and tinc didn't complain. Regards, Nick
Maybe Matching Threads
- [PATCH v2 06/35] crypto: Use kmemdup rather than duplicating its implementation
- [PATCH v2 06/35] crypto: Use kmemdup rather than duplicating its implementation
- What's wrong in these configurations?
- Check public/private RSA keypairs
- Warning: old key(s) found and disabled.