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:

Generate an SSH key

Key with "Duplication Prohibited" on it

Generating an SSH key

  1. Open Terminal
  2. Generate your key pair using your email address
    $ ssh-keygen -t ed25519 -C "your.email@example.com"
    Generating public/private ed25519 key pair
  3. When prompted to "Enter a file in which to save the key," press Enter to accept the default file location
    $ Enter file in which to save the key (~/.ssh/id_ed25519): ~/.ssh/[id_keyfile]
  4. At the prompt, simply press enter for an empty passphrase
    $ Enter passphrase (empty for no passphrase): [press enter]
    $
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.