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

Ubuntu 20.04 Remote Desktop Access from Windows 10

Ubuntu 20.04 Remote Desktop Access from Windows 10

The purpose of this tutorial is to show how to remote desktop into Ubuntu 20.04 from Windows. This will save the user from having to get up and go to their Ubuntu 20.04 computer any time that they need to access it. Instead, you will simply be able to remote desktop into Ubuntu 20.04 from Windows and it will be as if you are sitting at the other computer.

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

How to find my IP address, default gateway and DNS server on Ubuntu 20.04 Focal Fossa Linux from command line

How to find my IP address on Ubuntu 20.04 Focal Fossa Linux

The purpose of this tutorial is to show to use the Ubuntu ip command to see information about the local IP address, default gateway, and DNS servers on Ubuntu 20.04 Focal Fossa Linux. The IP address is used by your Ubuntu machine to talk to other devices on the network, like a router or other PCs. Keep in mind that your internal IP address is different from your system’s external IP.

Read more

Best firewall for Linux

Best firewall for Linux

A firewall is a line of defense on your network, primarily used to filter incoming traffic, but also used for outbound rules and other network related security. All major Linux distros come with a software firewall built into them, since it is part of the Linux kernel itself. Any user can configure their system firewall to get started with securing network traffic, but there are many alternatives to the default which will extend or simplify the functionality.

Read more

Mysql server has gone away - Fix

Mysql server has gone away – Fix

The MySQL server has gone away error can occur when you have an established connection to the MySQL server and for one reason or another, the connection times out or otherwise goes down. In the context of a Linux system, the error can sometimes be seen from the MySQL client. In this tutorial, we will show several solutions for dealing with and troubleshooting the MySQL error.

Read more

ssh_exchange_identification read connection reset by peer

ssh_exchange_identification read connection reset by peer

The ssh_exchange_identification read connection reset by peer SSH error is something you may see in your terminal when trying to log in to a remote host or when your session expires on a Linux system. In this tutorial, we will go over a few different causes for this error and show you how to troubleshoot the connection on your system. Using one of our methods below will hopefully remedy the error and allow you to log in via SSH or maintain your current session.

Read more

ssh_exchange_identification: connection closed by remote host

ssh_exchange_identification: connection closed by remote host

If you are trying to SSH into a remote host from a Linux system, the ssh_exchange_identification: connection closed by remote host error is one you might encounter when trying to log in. In this tutorial, we will go over a few different causes for this error and show you how to troubleshoot the connection on your system. Using one of our methods below will hopefully remedy the error and allow you to log in via SSH.

Read more

Resolving the bash: netstat: command not found error on Debian/Ubuntu Linux

bash: netstat: command not found – Debian/Ubuntu Linux

The netstat Linux command is used by system administrators to see information about network connections. Netstat is a powerful utility that can print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. It has been superseded by the ss command in recent years, but is still a viable tool for network diagnostics and troubleshooting.

Read more