Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

disable ssh password login

$ sudo vi /etc/ssh/sshd_config


ChallengeResponseAuthentication no
PasswordAuthentication no
Comment

disable password ssh login

$ sudo vi /etc/ssh/sshd_config

#Disable password for users so they can only connect with keys
# At the end of the file
ChallengeResponseAuthentication no

Match User user1,user2,root
    PasswordAuthentication no

Match Group data_user
	PasswordAuthentication no

# To check syntax error in the file
$ sshd -t 
# Restart the server
$ sudo systemctl restart ssh
Comment

PREVIOUS NEXT
Code Example
Shell :: nvm change node version 
Shell :: how to cd into local machine using ubuntu subsystem 
Shell :: array length bash 
Shell :: search file in linux terminal 
Shell :: how to show extensions on files win 11 
Shell :: epson l220 ubuntu driver 
Shell :: restart wsl 
Shell :: create a repo using github api 
Shell :: global configuration git 
Shell :: git find out commit for tag 
Shell :: how to install sublime text in kali linux 
Shell :: install python 2.7 kali linux 
Shell :: find all files with 777 permissions 
Shell :: combine commands bash 
Shell :: ffmpeg cut video without re encoding 
Shell :: git ignore all files within a directory 
Shell :: install csv 
Shell :: linux how to undeo ctrl+z 
Shell :: How to use the sort command 
Shell :: git remove cached 
Shell :: How to install npm in centos 
Shell :: vscode tab not working ubuntu windows 
Shell :: ubuntu install wine terminal 
Shell :: ping with timestamp 
Shell :: run shell script in dockerfile 
Shell :: magento 2 configure cron command line 
Shell :: install slack ubuntu/linux 
Shell :: composer uninstall dev require 
Shell :: search file in ubuntu 
Shell :: timestamp zsh terminal 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =