Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

disable ssh login only keys

$ 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 :: edit branch name git 
Shell :: linux restart sendmail 
Shell :: git force sync with remote 
Shell :: how to find a file in linux terminal 
Shell :: how to add .env to gitignore 
Shell :: fatal error: ft2build.h: No such file or directo 
Shell :: restart wsl2 windows 10 
Shell :: linux port 
Shell :: webmin restart 
Shell :: install hyperopt 
Shell :: create package in ros2 
Shell :: create repository and push to git using command in vs code 
Shell :: command line calculate folder size 
Shell :: apt search installed package 
Shell :: enable wifi raspberry pi headless 
Shell :: remote desktop connection wsl2 
Shell :: grep count lines 
Shell :: create symbolic link linux 
Shell :: get current branch name git 
Shell :: git change commit author 
Shell :: powershell while loop 
Shell :: conda install parse 
Shell :: change password linux 
Shell :: bash nested for loop one line 
Shell :: ngrok install authtoken 
Shell :: how to do install tmux plugins 
Shell :: install slack on linux 
Shell :: composer install no dev 
Shell :: add local repository to remote 
Shell :: find file by name linux 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =