Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 VPS 服务器,我锁定为只为 ssh 公开 3 个端口 80、443 和 22222。到目前为止,我可以使用 Terminal (Mac) 和 Panic Transmit 连接到服务器,但是当我尝试使用 Panic Coda 连接时,连接失败。我做错了什么?
我看到 Coda 支持 sFTP,我可以在 Coda 上连接到 SSH,但不能连接到 sFTP。
想法?解决问题?
谢谢
至于 coda 实际上在做什么,我不能肯定地说。
解决方法可能是创建一个 ssh 隧道并仅使用 FTP,将您的 FTP 服务器或防火墙配置为仅允许环回连接
使用类似的东西建立隧道:
ssh -o'Port 22222' -f user@server -L 3000:127.0.0.1:21 -N
然后将 FTP 指向 localhost,端口 3000。
HOWTO:SSH隧道变得容易