Xshell uses SSH to remotely log in to Alibaba Cloud ECS server CentOS7

Purchase a new Alibaba Cloud ECS server and configure it according to your choice

1. Configure the inbound direction of the security group to allow the TCP 22/22 port to pass through

2. Restart the server

3. root login

4. Check if port 22 is open
[root@localhost ~]# netstat -tnl
If the following content is displayed, it means that port 22 is open
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN

5. Check whether the ssh service is started
[root@localhost ~]# systemctl status sshd.service
If the following content is displayed, the ssh service has been started
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2017-12-14 02:06:56 CST; 38min ago
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 2576 (sshd)
CGroup: /system.slice/sshd.service
└ ─ 2576 /usr/sbin/sshd -D

6. Use Xshell to log in to the server remotely via SSH

Copyright statement: The content of this article is contributed by Alibaba Cloud real-name registered users. The copyright belongs to the original author. The Alibaba Cloud developer community does not own the copyright and does not assume the corresponding legal responsibility. For specific rules, please refer to the " Alibaba Cloud Developer Community User Service Agreement " and " Alibaba Cloud Developer Community Intellectual Property Protection Guidelines ". If you find any content suspected of plagiarism in this community, fill out the infringement complaint form to report it. Once verified, this community will delete the allegedly infringing content immediately.

Related Articles

Explore More Special Offers

  1. Short Message Service(SMS) & Mail Service

    50,000 email package starts as low as USD 1.99, 120 short messages start at only USD 1.00