[LINUX] I want to increase the security of ssh connections

To increase the security of ssh

Again, the target for logging in with ssh is Ubuntu 18.04. What I did to increase security

  1. Change port number
  2. Root login prohibited
  3. aaa

1. Change port number

# vim /etc/ssh/sshd_config

Open the config file with, look for Port 22 and enter any port There are well-known ports, so let's think about it. By the way, if you do not remove #, it will be commented out, so don't forget to remove it. However, this alone cannot be changed, so Let's add a new port number to SELinux policy and change the firewalld settings as well. This area will come out as soon as you check it.

2. Root login prohibited

#PermitRootLogin no

Find PermitRootLogin in the same way and set it to no

3. Create a public key

I will write here later

Recommended Posts

I want to increase the security of ssh connections
I want to customize the appearance of zabbix
I want to grep the execution result of strace
I want to automate ssh using the expect command!
I want to automate ssh using the expect command! part2
I want to use only the normalization process of SudachiPy
I want to judge the authenticity of the elements of numpy array
I want to know the features of Python and pip
Keras I want to get the output of any layer !!
I want to pin Spyder to the taskbar
I want to get the name of the function / method being executed
I want to output to the console coolly
I want to manually assign the training parameters of the [Pytorch] model
I want to handle the rhyme part1
I want to read the html version of "OpenCV-Python Tutorials" OpenCV 3.1 version
I want to handle the rhyme part3
I want to display the progress bar
I want to check the position of my face with OpenCV!
I want to know the population of each country in the world.
I want to handle the rhyme part5
I want to handle the rhyme part4
[Note] I want to completely preprocess the data of the Titanic issue-Age version-
I don't want to admit it ... The dynamical representation of Neural Networks
(Python Selenium) I want to check the settings of the download destination of WebDriver
I want to explain the abstract class (ABCmeta) of Python in detail.
I want to sort a list in the order of other lists
I want to use the Qore SDK to predict the success of NBA players
I want to stop the automatic deletion of the tmp area with RHEL7
Python: I want to measure the processing time of a function neatly
I want to handle the rhyme part7 (BOW)
I tried to touch the API of ebay
I want to get League of Legends data ③
I want to get League of Legends data ②
I want to use the activation function Mish
I want to display the progress in Python!
I tried to predict the price of ETF
I tried to vectorize the lyrics of Hinatazaka46!
I want to get the path of the directory where the running file is stored.
I want to visualize the transfer status of the 2020 J League, what should I do?
The story of IPv6 address that I want to keep at a minimum
I want to use Python in the environment of pyenv + pipenv on Windows 10
I want to use PyTorch to generate something like the lyrics of Japari Park
I want to set a life cycle in the task definition of ECS
I want to add silence to the beginning of a wav file for 1 second
I want to see a list of WebDAV files in the Requests module
I want to crop the image along the contour instead of the rectangle [python OpenCV]
I want to see the file name from DataLoader
I want to detect images of cats from Instagram
I want to scroll the Django shift table, but ...
I tried to summarize the basic form of GPLVM
I want to inherit to the back with python dataclass
I want to install a package of Php Redis
I want to write in Python! (3) Utilize the mock
I tried to visualize the spacha information of VTuber
I tried to erase the negative part of Meros
What I did to ssh to the VPS Ubuntu environment
I want to handle the rhyme part6 (organize once)
I want to publish the product at the lowest cost
I want to use the R dataset in python
I want to handle the rhyme part8 (finished once)
I tried to classify the voices of voice actors