# 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
sshd: 192.168.1.0/255.255.255.0
2. Add to /etc/hosts.deny
sshd: ALL
To allow only user "john" to login:
Add to /etc/ssh/sshd_config
AllowUsers john
To check the status, stop or start ssh server:
# service ssh status/stop/start