Ssh configuration and application-general Linux technology-Linux technology and application information. The following is a detailed description. Modify ssh port 22 in linux
Vi/etc/ssh/ssh_config
Vi/etc/ssh/sshd_config
Then, change the value to port 8888.
Service sshd restart (redhat as3) as root)
Use putty, port 8888
In Linux, the default SSH port is 22. For security reasons, modify the SSH port to 1433 as follows:
/Usr/sbin/sshd-p 1433
To enhance security
First, add a user with normal permissions:
# Useradd uploader
# Passwd uploader
// Set the password
The production machine prohibits ROOT remote SSH login:
# Vi/etc/ssh/sshd_config
Set
PermitRootLogin yes
Change
PermitRootLogin no
Restart sshd service
# Service sshd restart
Log on to the remote management console using uploader, and use su root to switch to the root user to obtain the highest permissions.
Login problem solving:
Vi etc/hosts. allow
Image 1
Check whether it is a local IP address. If it is not changed to a local IP address
Vi etc/hoets. deny
Image 2
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.