Rob's web

SSH server

The SSH protocol is a secure version of telnet.

Checking for a installed SSH-server

First we check if there is a SSH deamon running.

# systemctl status sshd

When there is we see:

# systemctl status sshd
● sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
   Active: active (running) since wo 2020-11-11 14:57:31 CET; 2h 22min ago
     Docs: man:sshd(8)
           man:sshd_config(5)
 Main PID: 906 (sshd)
   CGroup: /system.slice/sshd.service
           └-906 /usr/sbin/sshd -D

We are done with it.

Installation

We enter:

# yum -y install openssh-server openssh-clients

Configuration

Configuration is not necessary.

Firewall

Add to the firewall rules.

# firewall-cmd --permanent --zone=public --add-service=ssh
# firewall-cmd --reload

Starting SSH

To start the ssh-deamon enter:

# systemctl start sshd

To start at bootime enter:

# systemctl enable sshd

Testing

If not already done install a ssh-client on a remote machine, PuTTY for windows, and open a connection to your server.