Files
chill_notes/Linux/AliYun/阿里云远程连接.md
2026-04-21 20:31:26 +08:00

54 lines
876 B
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 阿里云服务器远程连接
## 服务器信息
| 项目 | 信息 |
|------|------|
| 公网 IP | `120.78.214.77` |
| 连接方式 | SSH |
---
## SSH 连接
```bash
# 基本连接
ssh root@120.78.214.77
# 指定端口
ssh -p 22 root@120.78.214.77
# 使用密钥
ssh -i ~/.ssh/key.pem root@120.78.214.77
```
---
## 远程管理工具
- **Windows**:使用 Xshell、PuTTY、MobaXterm
- **macOS/Linux**:直接使用终端
---
## 安全建议
1. 使用密钥登录,禁用密码登录
2. 修改默认 SSH 端口22 → 其他)
3. 配置防火墙,只开放必要端口
4. 定期更新系统补丁
---
## 阿里云安全组配置
在阿里云控制台 → 安全组,需开放以下端口:
| 端口 | 服务 |
|------|------|
| 22 | SSH |
| 80 | HTTP |
| 443 | HTTPS |
| 3306 | MySQL建议限制 IP |
| 3389 | RDPWindows 远程桌面) |