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 :: install zsh debian 
Shell :: cf rolling restart 
Shell :: ssh use other key file 
Shell :: stop rebase git 
Shell :: ubuntu proxmox guest agent 
Shell :: linux check gpu usage 
Shell :: remove file extension bash 
Shell :: install opencv apt 
Shell :: git global gitignore 
Shell :: browserrouter react not working install 
Shell :: gyp error npm install 
Shell :: husky pre-commit hook failed (add --no-verify to bypass) 
Shell :: sha256 windows 10 
Shell :: uuid 
Shell :: Start / Restart / Stop Nginx Commands 
Shell :: steam is not in the sudoers file. 
Shell :: zip not found 
Shell :: mysql2 installation 
Shell :: vim hangs 
Shell :: install homebrew on ubuntu 
Shell :: how to restart psql in linux 
Shell :: install aws cli in ec2 centos 
Shell :: pytorch install using conda 
Shell :: - laravel/installer is locked to version v3.2.0 and an update of this package was not requested. 
Shell :: bash for loop find 
Shell :: pipenv not found after pip3 install 
Shell :: how to install ghostscript on linux 
Shell :: Remove the credentials of git 
Shell :: powershell open device manager 
Shell :: (END) windows command line 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =