Knowledgebase

SSH

Secure Shell (SSH)

Articles

About the ps and kill commands Linux is a multitasking, multi-user system that allows all the processes to run simultaneously without conflict. A process represents an instance of a script that... An A-Z Index of the Linux BASH command line a alias Create an alias apropos Search Help manual pages (man -k) apt-get Search for and install software packages (Debian/Ubuntu) aptitude Search... Connection Timed Out: How to Fix SSH and Server Timeouts SSH and other TCP connections to Linux servers; tested with OpenSSH 10.0p2, curl 8.14.1 and netcat-openbsd on Debian 13, "Connection timed out" means your computer asked the server for a connection and got no answer at all before the time limit ran out. Nothing said yes and nothing said... How can I compress files/folders via SSH? Data compression helps lower the original size of a folder or a file, ultimately reducing disk space usage. It uses encoding technology, and the purpose is to reduce... How to Check CPU Temperature in Linux (sensors Command) Updated 1 December 2026 lm-sensors 3.6 and ipmitool on Ubuntu 24.04 and 26.04, Debian 13 and AlmaLinux 10 (install and VPS behaviour tested on U The Linux command to check the CPU temperature is sensors, from the lm-sensors package. Install it with apt install lm-sensors (Ubuntu, Debian) or dnf install... How to Connect to SSH on a Different Port (ssh, scp, sftp, rsync, PuTTY) Updated 4 November 2026 OpenSSH clients on Linux, macOS and Windows 10 and 11, PuTTY 0.85, FileZilla and WinSCP SSH uses port 22 unless the server is set up differently. If your server’s SSH runs on another port (for example 2222), every tool needs to be told the port, and... How to Create SSH Keys on Windows and Log In to a Linux Server the OpenSSH client built into Windows 10, Windows 11 and Windows Server 2019 to 2025; Linux servers with OpenSSH Windows includes the OpenSSH client, so you can create SSH keys and log in to a Linux server from PowerShell, without PuTTY. A key is safer than a password: the... How to Create an SSH Tunnel: Local, Remote and Dynamic Port Forwarding OpenSSH 10.2 (Ubuntu 26.04 LTS) client and server; the same options work in OpenSSH on macOS and Windows. PuTTY accordin An SSH tunnel carries another connection through your SSH login. The most common one is ssh -N -L 3307:127.0.0.1:3306 user@server: while it runs, anything that... How to Disable Root User Login via SSH? Step 1: Login to system as root user. Don’t worry, you will be using root account for remote login only in this step. Step 2: Create an alternate user account. For... How to Restart the SSH Service (sshd) on Linux: Ubuntu, Debian, AlmaLinux and Rocky Linux Updated 2 December 2026 OpenSSH server on Ubuntu 24.04 and 26.04, Debian 13, AlmaLinux and Rocky Linux 9 and 10 (tested with systemd on Ubuntu 2 To restart the SSH server, first check its settings with sshd -t, then run systemctl restart ssh on Ubuntu or Debian, or systemctl restart sshd on AlmaLinux or Rocky... How to Set Up ModSecurity with Apache on Debian/Ubuntu? The Apache web servers highly support customization and can be configured in multiple ways to suit your needs. There are many third-party modules that you can use to... How to Update cPanel and WHM from the Command Line (upcp) Updated 9 November 2026 cPanel and WHM 134 (LTS) to 138, root SSH access; commands and settings from the cPanel documentation (not testable with To update cPanel and WHM from the command line, log in to the server as root over SSH and run /usr/local/cpanel/scripts/upcp. It installs the newest build of the... How to Use SSH Multiplexing and Control Commands Updated 22 October 2026 If you regularly connect to the same server for remote logins, administration or automated tasks, SSH multiplexing reuses one existing connection instead of... How to Use the mtr Command and Read Its Report The mtr(my traceroute) command, originally named Matt's traceroute, is a computer program that combines the functions of the traceroute and ping programs in one... How to fix SSH permission denied error? Secure Shell Protocol (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network.   SSH uses public-key cryptography... How to install SSH ( secure shell ) service on Kali Linux Requirements Privileged access to your Kali Linux installation or Live system is required. Conventions # - requires given Linux commands to be executed with root... PuTTY Commands Cheat Sheet: Linux Commands for Beginners Updated 4 December 2026 PuTTY 0.85 on Windows, Linux commands tested on Ubuntu 24.04 and AlmaLinux 10 (they work the same on Debian, Rocky Linux PuTTY has no commands of its own. It is only the window: everything you type in it runs on your server, and the server runs Linux. So the commands you need are Linux... SSH Connection Refused on Port 22: Causes and How to Fix It Updated 2 December 2026 OpenSSH 9.6p1 on Ubuntu 24.04 LTS and 9.9p1 on AlmaLinux 10.2 (tested), Fail2Ban on Ubuntu 24.04 (tested); Debian, Rocky ssh: connect to host 203.0.113.10 port 22: Connection refused means your computer reached the server, but nothing on the server accepted the connection on port 22, or... Securing Communications in a Three-tier Rails Application Using SSH Tunnels Updated 28 September 2026 Ubuntu 24.04, Debian 12, AlmaLinux 9 and Rocky Linux 9 In a three-tier application (web server, application server, database), the links between the tiers should be encrypted and not reachable from the internet. SSH... Warning: Remote Host Identification Has Changed- Error in SSH This guide explains why you might see the SSH warning “REMOTE HOST IDENTIFICATION HAS CHANGED!” and how to safely fix it on macOS, Windows (using PuTTY or WSL), and... What Is the Default SSH Port and How to Change It Safely Updated 4 December 2026 OpenSSH 9.6p1 on Ubuntu 24.04 and 9.9p1 on AlmaLinux 10, tested; same steps on Rocky Linux and Debian SSH uses TCP port 22 unless someone changed it. To connect on another port, type ssh -p PORT user@server. To move your server to a new port without locking yourself... What Port Does SFTP Use? Port 22 and How to Use a Different Port OpenSSH (SFTP) on Linux servers, and SFTP clients such as sftp, scp, FileZilla and WinSCP; tested with OpenSSH 9.9 on Al SFTP uses TCP port 22, the same port as SSH, because SFTP (SSH File Transfer Protocol) runs inside an SSH connection. There is no separate SFTP service to open: if you...