Install SSH and enable ssh for root login

 SSH is SECURE SHELL which is used to connect remote Linux Servers. It uses port 22 for connection.

Application name: openssh-server and openssh-client 

Install ssh on the server: apt-get install openssh-server -y 

Start and Stop Service:

$service sshd (status|start|stop)

● ssh.service - OpenBSD Secure Shell server

   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)

   Active: active (running) since Mon 2021-11-15 22:27:10 PST; 2 months 28 days ago

 Main PID: 1195 (sshd)

   CGroup: /system.slice/ssh.service

           └─1195 /usr/sbin/sshd -D

 

NOTE: By default ssh login for root is disabled to enable ssh for use change PermitRootLogin no to PermitRootLogin yes in /etc/ssh/sshd_config file.

root@server:~# grep PermitRootLogin  /etc/ssh/sshd_config

# Ubuntu16 requires PermitRootLogin set to 'yes'.

PermitRootLogin yes


Comments

Popular posts from this blog

Cloudbees FlowServer - Debug

PIP Errors and Fix

Terraform Basics