Good night,
To install ssh server in Ubuntu use:
$ sudo apt-get install openssh-server
To let it safer edit /etc/ssh/sshd_config
$ sudo vi /etc/ssh/sshd_config
Than change the lines:
AllowUsers USER
AllowGroups GROUP_USER
PasswordAuthentication yes
MaxStartups 2:100:2
Port XXX # Change the port
What MaxStartups do? Specify the number of un authenticated connections in server. The syntax is start:percent:max. Example: 10:50:20. When it gets to 10 connections it will start with the percent. So every new connection will have 50% of chance to be automaticlly refused. When it gets to 20. It will denied ALL the new connections.
If you want, you can ask for a second password, if you type it wrong, it will close the connection:
Edit /home/user/.profile
echo Put your password
read senha
if [ $senha == “SOMETHING” ]
then
# CODES THAT ALREADY ARE AT .profile
else
exit
fi
With this you can do some tricks, to create a new RANDOM password every time somebody connect and send it to your e-mail. So you will need to put your normal password, than access your e-mail account, verify the new password and type it.
Best Regards,
Matheus
References:
Desabilitar Comando SU
Informação MaxStartups
I am not sure where you are getting your info, but great topic. I needs to spend some time learning more or understanding more. Thanks for great info I was looking for this information for my mission.
Whoa! This blog looks just like my old one! It’s on a entirely different subject but it has pretty much the same page layout and design. Excellent choice of colors!
Right here is the right site for anyone who hopes to understand this topic. You realize a whole lot its almost tough to argue with you (not that I actually will need to…HaHa). You certainly put a new spin on a topic which has been discussed for many years. Wonderful stuff, just excellent!
https://mostbet-zerkaloonline.buzz/gates-of-olympus-1000-demo-v-rublyah-gatesofolympus1000play/
Hi there I am so happy I found your webpage, I really found you by error, while I was looking on Askjeeve for something else, Regardless I am here now and would just like to say kudos for a tremendous post and a all round entertaining blog (I also love the theme/design), I don’t have time to browse it all at the minute but I have bookmarked it and also added your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep up the superb jo.
Watch sexual porno video xxx sex adults site