How to Install OpenSSH SSHD Server on Debian Linux

Posted on October 10, 2018 at 11:35 pm

You can install OpenSSH sshd server under Debian via apt-get.

First make sure apt-get repositories are up-to-date:

apt-get update

Then you can install OpenSSH server:

apt-get install openssh-server

By default OpenSSH sshd server opens port 22, check it with netstat:

netstat -tulpn | grep :22

Recommended: Check out a sample iptables firewall to secure port 22.

To start/stop/restart the sshd service you can use init.d:

/etc/init.d/ssh stop
/etc/init.d/ssh start
/etc/init.d/ssh restart
/etc/init.d/ssh status

Receive updates via email

Other Posts

Updated Posts