How to SSH to CentOS

angryTom
Release: 2020-03-19 11:03:16
Original
3896 people have browsed it

How to SSH to CentOS

How to SSH to CentOS

1. To connect CentOS via SSH, you first need to install the sshd service

yum install -y openssl openssh-server yum install openssh*
Copy after login

2. Set up auto-start And start the sshd service

systemctl enable sshd systemctl start sshd # service sshd start
Copy after login

3. Open port 22

firewall-cmd --zone=public --add-port=22/tcp --permanent
Copy after login

4. Now you can use the ssh command to connect to CentOS.

ssh root@localhost
Copy after login

Or use xshell, putty and other software to connect.

This article comes from the PHP Chinese website,CentOS usage tutorialcolumn, please pay attention to this column for more related tutorials!

The above is the detailed content of How to SSH to CentOS. 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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!