SSH is an important way for Linux remote connection, how to configure the SSH service to install Linux system, how to open ssh? Let's take a look at it below (this example shows how to open the SSH service for the CentOS system)
Tools/Materials
Query \ Install SSH service
- 1
1. Log in to the Linux system and open the Terminal command. Enter Rpm-qa |grep ssh to find out if the current system is installed
- 2
2. If you do not have an SSH package installed, you can install it through the Yum or RPM installation package (not specific)
END
Start the SSH service 2
- 1
Once the installation is done, the SSH service is turned on. SSH services are generally called SSHD
command line input Service sshd start can be started
- 2
or use/etc/init.d/sshd start
END
Configure \ View sshd Port 3
- 1
View or edit an SSH service configuration file, such as Vi/etc/ssh/sshd.config
If you want to modify the port, change the default port behind Port 22 to other ports (note the previous # number to be removed)
END
Remote Connection SSH4
If you need to connect to SSH remotely, you need to open the 22 port on the firewall.
. Turn off the firewall, or set the 22 port exception
END
Precautions
- If you are not sure how to modify the SSH port, you can refer to the experience of small series How to modify the SSH port number?
- Http://www.cnblogs.com/chen-lhx/p/3974605.html
How to configure SSH under Linux system? How do I turn on ssh?