Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux ssh access by ip

Modify the base sshd systemd stanza:

sudo systemctl edit sshd

Append the sshd [Service] stanza to your liking:


[Service]
#requires systemd 235+ and kernel 4.11+
IPAccounting=yes
IPAddressDeny=any
IPAddressAllow=192.18.1.22
IPAddressAllow=10.161.0.0/16
IPAddressAllow=100.64.0.0/24


reload for immediate effect:
sudo systemctl daemon-reload
Comment

PREVIOUS NEXT
Code Example
Shell :: brew compas mongo 
Shell :: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package nano 
Shell :: install minisom 
Shell :: Install ktlint in command line 
Shell :: parallel downloading arch 
Shell :: The application “SpringToolSuite4” can’t be opened. 
Shell :: vim error in ubuntu 
Shell :: remove inkscape 
Shell :: crontab reverse shell 
Shell :: install thefuck 
Shell :: use curl to delete an image from docker hub 
Shell :: pngquant-bin@4.0.0 postinstall: `node lib/install.js` 
Shell :: open prompt with default folder ubunut 
Shell :: how to fetch all git branches 
Shell :: install glesv2 and egl library 
Shell :: gh configure vim 
Shell :: git credential.helper does not store username password 
Shell :: linux remove lines from file 
Shell :: how to install very good cli for flutter 
Shell :: install concrete 5 on ec2 instance 
Shell :: make diff git as commit 
Shell :: sed replace baskslash with forwardslash 
Shell :: View a Particular Commit 
Shell :: invalid signature for kali linux repositories 
Shell :: cisco encryption command 
Shell :: colcon build single package 
Shell :: dig +noall +answer 
Shell :: curl time response 
Shell :: how to create a github repo 
Shell :: mysql backup dump docker file 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =