How to mount a remote filesystem over SSH with sshfs

How to mount a remote filesystem over SSH with sshfs

SSH (Secure Shell) is a protocol used to establish an encrypted connection with a remote machine using a client-server model: the ssh server runs on the machine we want to access remotely, while a client is used on the machines from which we want to connect. Thanks to sshfs, we can use an existing SSH connection to mount a remote directory in a secure way, without using additional services like NFS or Samba.

Read more

Ubuntu 20.04: Connect to wifi from command line with Netplan

Ubuntu Server 20.04: Connect to WiFi from command line

In this tutorial, you will learn how to connect to WiFi from command line on Ubuntu using Netplan. While this method can be used on Ubuntu desktop systems with a GUI, it is especially useful if you’re running a headless Ubuntu 20.04 system like a Raspberry Pi or need to connect to Wifi on Ubuntu Server. Follow along with us below as we connect to a WiFi on command line via SSID and network key.

Read more

OpenLiteSpeed change port

OpenLiteSpeed change port

The default listening port for OpenLiteSpeed web server is 8088. Many Linux administrators may be more accustomed to using the typical HTTP listening port 80, and HTTPS port 443. If you already have firewall rules or other settings configured for the typical ports, or just need to switch the listening port for other reasons, it is very easy to do inside of the OpenLiteSpeed web panel. In this tutorial, we will guide you through the step by step instructions of changing the default listening port for OpenLiteSpeed server on a Linux system.

Read more

Ubuntu Static IP configuration

Ubuntu Static IP configuration

This tutorial will deal with Ubuntu static IP address configuration. It will provide the reader with a step by step procedure how to set static IP address on Ubuntu Server via netplan and Ubuntu Desktop using NetworkManager. Static IP address is recommended for servers as the static address does not change as oppose to a dynamic IP address assignment via DHCP server.

Read more

Introduction to Curl

Curl command basics tutorial with examples

Curl is a free and open source software we can use to exchange data with servers using one of the many supported protocols, such as HTTP, HTTPS, FTP, FTP, SFTP. Since Curl is a command line tool, we can use it in our scripts, to automatize repetitive tasks, for example. There are many use-cases Curl can cover. In this tutorial, however, we see some of the most common ones.

Read more

Installing and using the ifconfig command on Debian

How to install missing ifconfig command on Linux

Most of us longtime Linux users have the ifconfig command seared into our brain, after years of repetitive use. It comes as a shock to some when they type the command and are met with an error message (ifconfig command not found). Indeed, the command has become deprecated, but it’s still possible to install ifconfig command.

Read more

Netplan static ip on Ubuntu configuration

Netplan static IP on Ubuntu configuration

In this tutorial, we will discuss a netplan static IP configuration on Ubuntu Linux. Netplan allows for straightforward network IP address configuration using human-readable data-serialization language YAML. The article will also discuss a default Netplan network settings and the location of the Netplan configuration file.

Read more

Linux IP forwarding

Linux IP forwarding – How to Disable/Enable using net.ipv4.ip_forward

It may be necessary to configure Linux IP forwarding on a Linux system in certain scenarios. If the Linux server is acting as a firewall, router, or NAT device, it will need to be capable of forwarding packets that are meant for other destinations (other than itself). Linux uses the net.ipv4.ip_forward kernel variable to toggle this setting on or off.

Read more

Change IP address on Ubuntu Server

Change IP address on Ubuntu Server

You have two options when configuring the IP address on your Ubuntu Server, and that is either a static IP address or DHCP. A static IP address allows you to manually select your IP address by configuring it on the Linux system, whereas DHCP relies on the router or DHCP server to lease you an IP address – either a reserved one or the next available one that is currently free, depending on the setup.

Read more

How to create host alias on Linux

How to create host alias on Linux

If you frequently use your Linux system to connect to a specific host, it can be convenient to make an alias for the hostname or IP address. This is especially true if the host has a long name or URL, and you do not want to keep typing the whole thing out every time you need to connect. There are several ways to create a host alias on Linux, depending on how you ordinarily connect to the host.

Read more

Hosts file example on Linux

Hosts file example on Linux

The /etc/hosts file can be found on all Linux systems. This is a plain text system file which can be used to map network names (like hostnames of computers on your local network, or URLs to online websites) to IP addresses. The hosts file has a higher priority than any DNS servers your system is configured to use.

Read more