
Windows to Ubuntu VPS: A Practical PSCP Guide for Copying Files & Folders
June 15, 2025
How to Create a Python Virtual Environment
June 17, 2025How to install NordVPN on Kali Linux
🛡️ Ethical Use Reminder: All tools and techniques discussed in this post are intended for ethical, legal, and educational use only. Only perform security testing on systems you own or have explicit permission to test. This content is for researchers, students and professionals following responsible disclosure and legal guidelines.
NordVPN is a no-logs VPN service offering encrypted tunnels, auto-connect, and kill-switch protection to secure your traffic. In this guide, we’ll walk through installing NordVPN on Kali Linux, whether you’re on a VM, VPS, or physical machine. In just a few minutes, you’ll have a secure VPN client ready.
Grab NordVPN using our referral link and get up to 3 months free while directly supporting the blog.
👉 Join NordVPN via our referral link
1. Prep your VPS
SSH into your Kali Linux host, then update and upgrade your packages before proceeding:
2. Add the NordVPN repository
Install prerequisites, import the GPG key, add the APT source, and refresh your package lists:
3. Install the client
4. Log in & connect
Authenticate and establish a connection:
4.1 Manual browser-assisted login
If your VPS doesn’t have a GUI browser you can still log in from it and finish the OAuth flow on another computer:
- On your VPS, run:
nordvpn loginIt will print a URL — copy that URL.
- Paste it into a browser on another computer, log in with your Nord account and click “Continue”.
- Copy the **Continue** button’s redirect link (it looks like nordvpn://login?action=login&exchange_token=…&status=done), then back on your VPS run:
nordvpn login –callback “nordvpn://login?action=login&exchange_token=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%3D%3D&status=done”
This will complete the login without needing a browser on the VPS itself.
Important: Prevent losing SSH access when using NordVPN on a VPS
When you connect NordVPN on a VPS, all network traffic—including SSH—may be rerouted through the VPN, causing your SSH session to hang or disconnect. This is especially common when you’re connected via your VPS public IP.
To prevent NordVPN from interfering with your SSH connection, whitelist port 22 before connecting:
This ensures that SSH traffic always bypasses the VPN tunnel, keeping your VPS accessible even while NordVPN is active. You can verify whitelisted rules anytime with:
5. Optional: Auto-connect on boot
If you want NordVPN to start automatically after a reboot, enable the systemd service and configure auto-connect, kill-switch, and DNS protection:
6. Troubleshooting
- Permission errors? Run commands as
root
or prefix withsudo
. - DNS issues? Run
nordvpn set dns 1
thensudo systemctl restart NetworkManager
. - Login fails? Verify credentials, then
nordvpn logout && nordvpn login
.
NordVPN is now installed, secured, and optionally auto-connecting on your Kali Linux host. Run nordvpn --help
to explore more options.
7. Bonus Setup NordVPN Script
✅ Best practice: Make the script executable before running it:
Need a solid VPN for your pentesting, bug bounty labs, or just staying anonymous while you work? We use NordVPN daily. Fast speeds, no logs, and built-in obfuscation to slip past restrictive networks.
Use our referral link and get up to 3 months free when you sign up. We get rewarded too, so you are directly supporting the blog while locking in extra value.
👉 Join NordVPN via our referral link and claim your bonus months
⭐ Ready for a reliable, high-performance VPS at an unbeatable price? We host our own Kali labs on Hostinger: 4 vCPU, NVMe storage, 16 GB RAM and 16 TB bandwidth, backed by 24/7 support and a 30-day money-back guarantee. You’ll save up to 20% when you lock in a 24-month plan. Grab a Hostinger VPS using this referral link and support our content.
🚀 Claim Your Hostinger VPS Now (from only US$ 7.99/mo)
1 Comment
[…] Having issues setting up NordVPN? Check out our detailed guide: NordVPN Setup on Kali Linux […]