Posted On May 21, 2020

Lubuntu 20.04 – Enable SSH

kimconnect 0 comments
blog.KimConnect.com >> Linux >> Lubuntu 20.04 – Enable SSH
# Install sshd
sudo apt install ssh -y
sudo systemctl enable --now ssh

# Configure firewall to allow ssh
sudo ufw allow ssh

# Check firewall
ufw status verbose
# sudo ufw delete allow ssh # disallow ssh through firewall

# Configure ssh to enable root login - please make sure that root has a password
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config

# Set gracetime
sudo sed -i 's/#LoginGraceTime 2m/LoginGraceTime 2m/' /etc/ssh/sshd_config

# restart sshd
sudo systemctl restart sshd

Leave a Reply

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

Related Post

Install Apache2 with PHP and Ruby on CentOS 5.2

yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl…

PowerShell: Probe Remote Machine for Its OS Type

function probeOsType($server){ $ping=test-connection $server -count 1 $ttl=$ping.ResponseTimeToLive $osType=switch($ttl){ {$_ -le 64} {"Linux"; break} # MacOs…

Linux: Remediate SSL Weak Cipher Suites

Description The remote host supports the use of SSL ciphers that offer weak encryption. Note:…