How to Install or Update OpenSSH Server on Ubuntu

OpenSSH is a free tool generally utilized for remote login on Linux systems. It utilizes SSH/SecSH protocol suite giving encryption to network administrations . This article will help you to Install or Update OpenSSH Server on Ubuntu and LinuxMint frameworks.

Install/Update OpenSSH Server

OpenSSH Server package is available under default apt repositories for all versions of operating systems. You can install or update latest OpenSSH server using below command:

apt-get install openssh-server

Start/Stop OpenSSH Service

After installing OpenSSH latest package from default apt repository.Open ssh will start automatically.But you can Start, Stop, Restart the service by using below command:

service ssh start
service ssh stop
service ssh restart

Open Firewall Port

If you are using iptables on your server,use following command to open port for SSH access:

iptables -A INPUT -s 192.168.1.0/24 -p tcp --dport 22 -j ACCEPT

OR, if you are using ufw for managing firewall use below command:

ufw allow from 192.168.1.0/24 to any port 22

Leave a Reply

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