Home > Java > javaTutorial > How to prevent sshd service from being brute force cracked

How to prevent sshd service from being brute force cracked

坏嘻嘻
Release: 2018-09-14 09:15:06
Original
1564 people have browsed it

As the name suggests, a hybrid hard drive is a combination of a mechanical hard drive and a solid-state drive. The hybrid hard drive uses smaller-capacity flash memory particles to store commonly used files, and the capacity is usually between 8 and 16GB. That is, a hard disk (SSD) with a built-in flash memory cache in the HDD. Solid-state hybrid drives take a traditional hard drive and add a small amount of fast, affordable NAND flash memory.

1, the password is complex enough

The length of the password should be greater than 8 characters, preferably greater than 14 characters. The complexity of the password is that the password should have numbers, uppercase and lowercase characters and special characters as much as possible Comply with the mixed composition

2, modify the default port number

3, do not use the root username to log in

Is it possible to prohibit root identity login?
No, because some programs need to be logged in and run as root,
In addition, to determine whether a user is a super administrator, look at whether the user's ID is 0
The following method cannot be used to prohibit root login because the pid of the sss user is 0,

New user

useradd sss
Copy after login

Set password

echo 123456 | passwd --stdin sss
Copy after login

Change configuration file

vim /etc/passwd
Copy after login
改:sss:x:1000:1000::/home/sss:/bin/bash为:sss:x:0:0::/home/sss:/bin/bash改:root:x:0:0:root:/root:/bin/bash为:root:x:0:0:root:/root:/sbin/nologin
Copy after login

In this way, you can use a normal account to log in in the future

sunlizhaodeMBP:~ sunlizhao$   ssh sss@192.168.137.162[root@localhost ~]#
Copy after login

Related recommendations:

12306 verification code cracking ideas sharing_javascript skills

position: relative/absolute level that cannot be broken through_experience exchange

The above is the detailed content of How to prevent sshd service from being brute force cracked. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template