.ovpn download issues

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Ahriman
New to forums
New to forums
Posts: 11
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Jun 15, 2021 5:32 pm

.ovpn download issues

Post by Ahriman »

I followed the tutorial that was posted on one of the forums
viewtopic.php?f=46&t=11034
I’m stuck on 4 which reads
“The script generates a file named something similar to client.ovpn. That file
contains all the necessary config files and certificates for connecting to
your VPN. Download it and set your VPN client to use these.”
I’m unable to find out how to download the file. It’s located in /root/Ahriman.ovpn
Any help will be appreciated.
User avatar
hiimcody1
Staff
Staff
Posts: 1593
Joined: Wed Dec 28, 2011 4:59 pm

Re: .ovpn download issues

Post by hiimcody1 »

Ahriman wrote: Tue Jun 15, 2021 5:38 pm I followed the tutorial that was posted on one of the forums
viewtopic.php?f=46&t=11034
I’m stuck on 4 which reads
“The script generates a file named something similar to client.ovpn. That file
contains all the necessary config files and certificates for connecting to
your VPN. Download it and set your VPN client to use these.”
I’m unable to find out how to download the file. It’s located in /root/Ahriman.ovpn
Any help will be appreciated.
The easiest way would be to use a program called WinSCP to connect to the VDS using the same credentials you use for SSH. WinSCP will let you download files off of the VDS.
Ahriman
New to forums
New to forums
Posts: 11
Joined: Tue Jun 15, 2021 5:32 pm

Re: .ovpn download issues

Post by Ahriman »

Needs to be MacBook capable.
Naleksuh
This is my homepage
This is my homepage
Posts: 298
Joined: Thu Jul 25, 2019 12:35 am

Re: .ovpn download issues

Post by Naleksuh »

Any FTP client which supports SFTP will work, not just WinSCP, which as the name would say only supports Windows.
Ahriman
New to forums
New to forums
Posts: 11
Joined: Tue Jun 15, 2021 5:32 pm

Re: .ovpn download issues

Post by Ahriman »

The basic VNC console supports it. I’m just not sure of the command that I’ll use to download the specific file on my Mac.
Naleksuh
This is my homepage
This is my homepage
Posts: 298
Joined: Thu Jul 25, 2019 12:35 am

Re: .ovpn download issues

Post by Naleksuh »

I wouldn't really recommend using the VNC console in this case. All the traffic is completely unencrypted so it's not ideal for downloading a sensitive thing like your VPN private key. In general you shouldn't use it at all unless it's your only option.

It also wouldn't be able to download anything either due to the nature of how VNC (and web VNC) works in comparison to SSH.

If you really want to download the file over SSH you could simply cat the file and copy the output. You could also use an SFTP client.
Ahriman
New to forums
New to forums
Posts: 11
Joined: Tue Jun 15, 2021 5:32 pm

Re: .ovpn download issues

Post by Ahriman »

Using an ssh terminal
Signed in.
How could I use cat to download the file?
Usually when I put in “cat Ahriman.ovpn” it shows me the inside of it which includes the private key etc. how would I download it
Naleksuh
This is my homepage
This is my homepage
Posts: 298
Joined: Thu Jul 25, 2019 12:35 am

Re: .ovpn download issues

Post by Naleksuh »

You'd copy the contents and paste it into a file on your device.

But that's not really an elegant way to download a file and I personally would do it through an SFTP client. But you seemed to want to use SSH so I suggested that.
Ahriman
New to forums
New to forums
Posts: 11
Joined: Tue Jun 15, 2021 5:32 pm

Re: .ovpn download issues

Post by Ahriman »

I copied the contents but openvpn only takes imported files though a .ovpn file
Naleksuh
This is my homepage
This is my homepage
Posts: 298
Joined: Thu Jul 25, 2019 12:35 am

Re: .ovpn download issues

Post by Naleksuh »

My idea was that you'd simply paste the contents into a file on your device then import that file.

You could also use an SFTP client to download the file directly which would be more elegant.
Ahriman
New to forums
New to forums
Posts: 11
Joined: Tue Jun 15, 2021 5:32 pm

Re: .ovpn download issues

Post by Ahriman »

Tried using zilla. Seems to be having issues with that as well. Ends in .xml which openvpn doesn’t take.
Naleksuh
This is my homepage
This is my homepage
Posts: 298
Joined: Thu Jul 25, 2019 12:35 am

Re: .ovpn download issues

Post by Naleksuh »

I assume "zilla" is short for FileZilla here. I don't know why it would be downloading an XML file. Assuming you are simply dragging it onto your desktop it should be the same extension as is on the desktop computer.
Ahriman
New to forums
New to forums
Posts: 11
Joined: Tue Jun 15, 2021 5:32 pm

Re: .ovpn download issues

Post by Ahriman »

When I try dragging the file from my server to the desktop using FileZilla it does absolutely nothing.
Naleksuh
This is my homepage
This is my homepage
Posts: 298
Joined: Thu Jul 25, 2019 12:35 am

Re: .ovpn download issues

Post by Naleksuh »

It is a bit difficult to troubleshoot things step by step over the forums. You might consider joining us on #nfo-support where I can help you with this FileZilla problem, or, if you would prefer help from staff you can send email to support[at]nfoservers[dot]com or press Help! in control panel.
User avatar
hiimcody1
Staff
Staff
Posts: 1593
Joined: Wed Dec 28, 2011 4:59 pm

Re: .ovpn download issues

Post by hiimcody1 »

If FZ doesn't work, you could use Cyberduck. It is a native Mac client and I know for a fact that it works, I use it on my macbook.
Post Reply