SSH Server

Install (Debian)

# apt install openssh-server


To allow only users from your local network (for instance, 192.168.1.x) to connect apply the following:

1. Add to /etc/hosts.allow


2. Add to /etc/hosts.deny

sshd: ALL

To allow only user "john" to login:

Add to /etc/ssh/sshd_config

AllowUsers john

SSH Service

To check the status, stop or start ssh server:

# service ssh status/stop/start