SSH connection using Putty:
1. sudo apt-get update
2. sudo apt-get upgrade
3. sudo apt remove openssh-server
4. sudo apt install openssh-server
Edit SSH config file
vi /etc/ssh/sshd_config
set PasswordAuthentication yes
add "AllowUsers <username>" at the end of file
Check ssh service:
service ssh status
if you see: * sshd is not running:
service ssh start
restart service :
service ssh --full-restart
type the below command to edit the sudoers file.:
visudo
add the following line after "%sudo ALL=(ALL:ALL) ALL"
%sudo ALL=NOPASSWD: /usr/bin/sshd