There may be a case where you want to use WSL(Windows Subsystem for Linux) via a remote SSH connection. Configuring a remote SSH connection to WSL is not necessarily straightforward because: You need to configure port forwarding from WSL to the host machine WSL does not have systemd, so you need to configure automatic …
Read MoreThe default MTU(Maximum Transmission Unit) is 1420 in wireguard, while the most other devices use 1496 or 1500. Read here for more info. TL;DR Stop the wireguard interface in use: 1sudo systemctl stop wg-quick@wg0 2# or 3sudo wg-quick down wg0 Edit the wireguard config file: 1sudo vim /etc/wireguard/wg0.conf Add …
Read MoreThis tutorial is going to show you how to set up your own WireGuard VPN server on Ubuntu. WireGuard is made specifically for the Linux kernel. It runs inside the Linux kernel and allows you to create fast, modern, and secure VPN tunnel. TL;DR Prerequisites This tutorial assumes that the VPN server and VPN client are …
Read MoreThis tutorial is going to show you how to set up your own WireGuard VPN server on CentOS. WireGuard is made specifically for the Linux kernel. It runs inside the Linux kernel and allows you to create fast, modern, and secure VPN tunnel. TL;DR Prerequisites This tutorial assumes that the VPN server and VPN client are …
Read MoreLet’s update the Password Authentication parameter in the ssh service config file: 1vim /etc/ssh/sshd_config Hey, what? You can't even find the sshd service? Install it then: 1sudo apt update 2sudo apt install openssh-server In the /etc/ssh/sshd_config file, uncomment this line: 1#PasswordAuthentication yes Boom! Done. …
Read MoreLaunch OpenVPN client as a daemon. Here I assume you already have your own cert file - filename.ovpn. 🙂 Modify its file extension to conf like so: 1mv filename.ovpn filename.conf Put your cert file inside /etc/openvpn directory like so: 1mv /path/to/filename.conf /etc/openvpn/ OpenVPN client service name would be …
Read MorePrerequisites for a vhost setup: 1chown -R apache:apache /path_to/site_root Set the permission of the root directory to 755, you may already know. 🙂 Well, let’s create a vhost config file before you edit it. 1cd /etc/httpd/conf.d 2vim domain_name.conf Now, grab this content to your config file: 1<VirtualHost …
Read MoreI recently came up with this error on one of my OpenVPN servers. "OpenVPN - Socket bind failed on local address [AF_INET] IP:#portnum: Cannot assign requested address" Let me share how I did fix it. First off, check this openvpn’s default init script : [email protected] 1sudo grep After …
Read MoreThis is a manual version of ssh-copy-id command. Let’s say that we are logging in to server named B from a local machine named A. First off, generate authentication key pair without passphrase on the local machine A: 1ssh-keygen -t rsa Now you got a public key of your local machine, of which path is: 1cd ~/.ssh 2cat …
Read MoreIn some situations, you are given only a ppk file for access to a cloud server. You know, however, it's for Putty on windows, not for OpenSSH client which might be the most familiar to you.🤔 I am gonna introduce a method to convert a ppk file into a pem file so that you can login to the linux server with ssh command …
Read More