Skip to content

Instantly share code, notes, and snippets.

Last active July 6, 2022 01:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save UbuntuEvangelist/1107a9b5f1faa2d0e013bab08b5fea9f to your computer and use it in GitHub Desktop.
OpenVPN Setup Linux
sudo -i
apt update -y && apt-get upgrade -y
apt update -y
apt install build-essential checkinstall
apt install ubuntu-restricted-extras
apt install software-properties-common
apt install apt-show-versions
apt upgrade -o APT::Get::Show-Upgraded=true
apt-show-versions | grep upgradeable
apt install git
git config --global "name"
git config --global
ssh-keygen -t rsa -b 4096 -C ""
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
# Add SSH Key the GitHub
cat /root/.ssh/
apt upgrade -y && apt update
apt-get install openssh-server
nano /etc/ssh/sshd_config
# Find (ctrl+w) this line and set
PermitRootLogin yes
PubkeyAuthentication yes
PasswordAuthentication yes
# Save & exit ctrl+s and ctrl+x then hit enter
service ssh restart
apt upgrade -y && apt update
apt -f install && apt autoremove
apt -y autoclean && apt -y clean
apt upgrade -y && apt update
curl -O
chmod +x
sudo apt-get install openvpn
sudo apt-get install network-manager-openvpn
sudo apt-get install network-manager-openvpn-gnome
apt update && apt -y install ca-certificates wget net-tools gnupg
wget -qO - | apt-key add -
echo "deb focal main">/etc/apt/sources.list.d/openvpn-as-repo.list
apt update && apt -y install openvpn-as
# Source:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment