0%

Check SSH status on Linux and turn it on if not running

Posted on
Category: Linux

! Check service status
sudo systemctl status ssh

! Check if SSH is listening on port 22
sudo ss -tlnp | grep :22

! Check service state quickly
systemctl is-active ssh

! If SSH is not running, start it
sudo systemctl start ssh

! Enable it at boot:
sudo systemctl enable ssh

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*