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

Is part of the minimal install.

Configuration

Configuration is not necessary.

Firewall

Is set after installation.

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, use PuTTY on windows and open a connection to your server. If you have an linux workstation you can use ssh on the cmd-line.

WAN access

If possible connect via an VPN-connection to your server en keep the SSH port closed on your router. This keep hacking attemps to a minimum. you need an VPN-server running on the router. Fritz!Box supports this.