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:

Will Passkeys Replace Passwords?

YubiKey 5C NFC - Two Factor Authentication USB and NFC Security Key

In the digital age, passwords are one of the primary methods used for securing our online accounts and devices. However, the effectiveness of passwords in securing our personal data and digital assets is often questioned due to the increasing prevalence of data breaches and cyber-attacks. This has led to the search for alternatives to traditional passwords, and passkeys have emerged as a viable replacement.

Tags

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.

Search text recursively in log files

Macbook Coffee @danielcgold

Part of administering web servers is looking through log files for clues whenever you come across issues with your web server or web applications. The logs most often will tell you exactly what went wrong. However, log files can be separated into multiple files and compressed to save space.

To search for a particular text through multiple files easily, use the following command:

find . -name "*.gz" | xargs -n 1 grep -H "[text to search]"

Or if the log files are compressed with gzip, use the following command:

Tags

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 {} \;