# 改变目录所有者
sudo chown -R joehuang:joehuang openclaw-20260324
# 现在可以正常进入
cd openclaw-20260324/
ls -la
# 改变目录所有者
sudo chown -R joehuang:joehuang openclaw-20260324
# 现在可以正常进入
cd openclaw-20260324/
ls -la
阿里云:
– supabase
– tailscale derp
– 网站
N200
– rustdesk
– dify
根据您的需求,我将为您提供一个详细的旧有结构调整方案。以下是分步解决方案:
1. 整体架构规划
当前架构:
“`
用户 -> Apache + PHP7.4 -> 网站A/B
“`
目标架构:
继续阅读“旧结构增加nginx反向代理”# Ubuntu服务器多网站部署 – 完整标准操作手册
# 使用root新增用户
# 创建用户(会交互式提示设置密码和用户信息)
sudo adduser username
sudo tailscale up –advertise-exit-node
sudo tailscale up –exit-node=100.88.88.250 –accept-dns=false –exit-node-allow-lan-access
sudo tailscale up –exit-node=100.88.88.250 –accept-dns=false
sudo tailscale up –exit-node= –accept-dns=false
sudo tailscale up –exit-node=
sudo tailscale up –reset –exit-node=100.88.88.250
新安装的 Linux 系统无法 SSH 连接,通常是由于 SSH 服务未安装或未启动。请按以下步骤排查:
# 检查 SSH 服务是否安装
systemctl status ssh # Ubuntu/Debian
systemctl status sshd # CentOS/RHEL/Fedora
# 如果没有安装,先安装
sudo apt install openssh-server # Debian/Ubuntu
sudo yum install openssh-server # CentOS/RHEL
sudo dnf install openssh-server # Fedora
# 启动服务
sudo systemctl start ssh # Ubuntu/Debian
sudo systemctl start sshd # CentOS/RHEL/Fedora
# 设置开机自启
sudo systemctl enable ssh # Ubuntu/Debian
sudo systemctl enable sshd # CentOS/RHEL/Fedora
# 查看防火墙状态
sudo ufw status # Ubuntu (如果使用UFW)
sudo firewall-cmd --state # CentOS/RHEL/Fedora (firewalld)
sudo iptables -L # 检查iptables规则
# 开放22端口
sudo ufw allow 22 # Ubuntu
sudo firewall-cmd --add-port=22/tcp --permanent # CentOS/RHEL
sudo firewall-cmd --reload
# 检查配置文件
sudo nano /etc/ssh/sshd_config
# 确保以下设置正确:
# PermitRootLogin yes(如果要以root登录)
# PasswordAuthentication yes(如果要用密码登录)
# Port 22(默认端口)
# 修改后重启服务
sudo systemctl restart ssh/sshd
# 检查SSH是否在监听22端口
sudo netstat -tlnp | grep :22
ss -tlnp | grep :22
如果你使用的是云服务器(AWS/Azure/阿里云/腾讯云等):
# 在同一网络内先用局域网IP测试
ifconfig 或 ip addr # 查看本机IP
# 从另一台机器测试连接
ssh username@服务器IP
# 查看SSH服务日志
sudo journalctl -u ssh -f
sudo tail -f /var/log/auth.log # Ubuntu
sudo tail -f /var/log/secure # CentOS/RHEL
· 权限问题:确保用户家目录权限正确(chmod 700 ~/.ssh)
· SELinux问题(CentOS/RHEL):
sudo setsebool -P sshd_full_access on
sudo restorecon -Rv /etc/ssh
· 密码认证被禁用:修改sshd_config中PasswordAuthentication yes
请告诉我:
这样我能提供更针对性的帮助。