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
"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)
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)
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
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
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
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)
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
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
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
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
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
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
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...