How to check for SSH version on Ubuntu or Linux server

Linux (Ubuntu) bash terminal in Windows subsystem for Linux (WSL)

You can check the version of SSH (Secure Shell) on an Ubuntu server by running the following command in the terminal:

$ ssh -V

This will display the version of the SSH client installed on your system. If you want to check the version of the SSH server, you can connect to the server using SSH and run the same command.

Alternatively, you can check the version of the OpenSSH package installed on your Ubuntu server by running the following command:

Servers

Web servers are an essential component of the modern internet infrastructure. They are responsible for serving web content to users when they request it, handling incoming requests, and managing data transfers. In this blog, we'll explore what web servers are, how they work, and some popular web server technologies.

Copy files with rsync in Linux

Copy files with rsync in Linux

Rsync (remote sync) is a linux utility to synchronize local and remote files and directories, mainly used in terminal.

I use this mainly in downloading/uploading files and directories from and to remote servers or even local files. I use rsync as well with shell scripts for backups that are ran automatically daily using the crontab utility.

Correct file permissions for WordPress

Person wearing WordPress shirt in front of computer

File and folder permissions can be a problem sometimes and can cause errors when not set properly on your server.

For WordPress installations, you can set the proper permissions with the following commands:

Set all directory permissions:

find . -type d -exec chmod 755 {} \;

Set all file permissions:

find . -type f -exec chmod 644 {} \;