Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to disable password for ssh sudo users only

$ 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 :: check gcc version 
Shell :: docker compose stop 
Shell :: generate keystore on mac 
Shell :: Ports are not available: listen tcp 0.0.0.0:61616: bind: An attempt was made to access a socket in a way forbidden by its access permissions. 
Shell :: fcm post example curl 
Shell :: heroku rebuild without commit 
Shell :: wsl 2 reboot ubuntu 
Shell :: Kali free ports in use 
Shell :: restart webmin terminal 
Shell :: latest gradle version 
Shell :: pass awk varible to bash 
Shell :: wsl2 release memory 
Shell :: install pgcli linux 
Shell :: post curl request 
Shell :: Add RPM Fusion Fedora 36 
Shell :: npm install less-loader 
Shell :: how to create a text file in batch 
Shell :: remove trailing slash 
Shell :: install wireshark ubuntu 
Shell :: windows where are pip packages installed 
Shell :: node number id generator 
Shell :: how to get updates in linux 
Shell :: spaceship zsh 
Shell :: bash delete files with names from subfolder 
Shell :: auth token 
Shell :: import ovpn file ubuntu 
Shell :: snap install slack 
Shell :: list installed versions of node 
Shell :: ubuntu find file 
Shell :: -bash: expo: command not found 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =