Hello
I saw a lot of videos that I need to configure OPENVPN
and I knew that the key has to be match which means I have the copy the key from Vyos machine to the other router because I’m using ESXI VMware
I really need to know how to do that I mean the key that has to be match on both Vyos machine on ESXI
Best Regards
Hi
you can find keys in config/auth directory
for example
[email protected]:~$ ls -la /config/auth/
total 12
drwxrwsr-x 2 root vyattacfg 4096 Oct 21 18:27 .
drwxrwsr-x 9 root vyattacfg 4096 Oct 19 21:40 ..
-rw------- 1 root vyattacfg 636 Oct 21 18:27 foo.key
You can use “scp” to copy it to another vm or use “cat” and copy all lines from key file.
[email protected]:~$ sudo cat /config/auth/foo.key
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
8e056f1757374c53222c0ef0260401b1
...
-----END OpenVPN Static key V1-----
On another node “touch” that file and paste lines from that .key file
sudo touch /config/auth/foo.key
sudo nano /config/auth/foo.key
And save it.
Thanks for answer but I can’ use SUDO command !
Now I could copy the line from the key but can you please tell me with some details how to copy them and past them to the other machine
[quote=“Viacheslav, post:2, topic:6062”]
On another node “touch” that file and paste lines from that .key file
sudo nano /config/auth/foo.key
nano - It’s a text editor
Paste the contents of the key
And press “ctrl+x” and “y” for saving file
Ok great now it’s working the last question how can I delete a key that I’ve already generated
Thanks man
Thanks I’ve already found it
You can re-generate new key
vyos@r4-roll:~$ generate openvpn key foo.key
Generating OpenVPN key to /config/auth/foo.key
Your new local OpenVPN key has been generated
Or delete
sudo rm /config/auth/foo.key
system
Closed
9
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.