Proof of stake , a small guide on securing login with Secure Shell (SSH)

Protocol 2
LogLevel INFO
Port #yourportnumber#
MaxAuthTries 3
X11Forwarding no
Banner /path/your/banner.
LoginGraceTime 20
ClientAliveCountMax 0
ClientALiveInterval 120
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256
Ciphers aes256-ctr,aes192-ctr,aes128-ctr
PermitUserEnvironment no
PermitRootLogin no
PasswordAuthentication no
PermitEmptyPasswords no
HostbasedAuthentication no
IgnoreRhosts yes
RhostsRSAAuthentication no
ChallengeResponseAuthentication no
KerberosAuthentication no
GSSAPIAuthentication no
sudo apt-get install fail2ban -y
[SSHD]
enabled = true
Port = #yourportnumber_for_ssh
filter= sshd
logpath = /var/log/auth.log
maxretry = #same_as_maxauthtries
#whitelisted IP addresses
ignoreip = <if you have a static ip you use to connect to ssh you can whitelist it so you do not risk banning yourself out of the server>
Sudo sytemctl restart fail2ban
wget https://raw.githubusercontent.com/acouvreur/ssh-log-to-influx/master/docker-compose.standalone.yml
docker-compose -f docker-compose.standalone.yml up
template(name="OnlyMsg" type="string" string="%msg:::drop-last-lf%\n")
if $programname == 'sshd' then {
if $msg startswith ' Failed' then {
action(type="omfwd" target="127.0.0.1" port="7070" protocol="tcp" template="OnlyMsg")
}
}
template(name="OnlyMsg" type="string" string="%msg:::drop-last-lf%\n")
if $programname == 'sshd' then {
if $msg startswith ' Invalid' then {
action(type="omfwd" target="127.0.0.1" port="7070" protocol="tcp" template="OnlyMsg")
} else if $msg startswith ' Disconnected from authenticating' then {
action(type="omfwd" target="127.0.0.1" port="7070" protocol="tcp" template="OnlyMsg")
}
}
netcat localhost 7070
Failed password for username from 206.253.167.10 port 11111 ssh2
(then ctrl + c to get out of netcat to the localhost)

--

--

--

http://adanorthpool.com 0100000101000100010000010010000001001110010011110101001001010100010010000010000001010000010011110100111101001100

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Security guidelines for anyone

Bombcrypto’s LP is raised to $2️⃣M, after opening farm on Pancakeswap

🎯🎯The Exceptional Decentralized Exchange!

6 Amazing Things About Cheque Bounce Notice Everyone Should Know

6 Amazing Things About Cheque Bounce Notice Everyone Should Know

GDPR : Curse of Data Breach

What does Avalanche Effect mean?

Introducing JuggerSWAP Beta v0.12 & Pre-Mining Tutorial

USSD Top 10 Security Risk For Mobile Payments

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
ADA North Pool

ADA North Pool

http://adanorthpool.com 0100000101000100010000010010000001001110010011110101001001010100010010000010000001010000010011110100111101001100

More from Medium

State of the Republic — Issue #4

THE METAVERSE IS COMING, AND IT’S FULL OF POTENTIAL

Caring for the Community: Profit Sharing and the Trickle Effect of the Triple Utility $FORM Token

LUNA pumps and dumps over and again in end of the week’s thrill ride run