使用Coda访问服务器SSH/sFTP

发布于 2024-09-26 06:01:54 字数 224 浏览 3 评论 0原文

我有一个 VPS 服务器,我锁定为仅公开 3 个端口 80、443 和 22222 用于 ssh。到目前为止,我可以使用终端 (Mac) 和 Panic Transmit 连接到服务器,但是当我尝试使用 Panic Coda 连接时,连接失败。我做错了什么?

我看到 Coda 支持 sFTP,我可以在 Coda 上连接到 SSH,但不能连接到 sFTP。

有想法吗?解决办法吗?

谢谢

I have a VPS server and I lock down to only expose 3 ports 80, 443 and 22222 for ssh. So far I can connect to the server using Terminal (Mac) and Panic Transmit, but when I try to connect using Panic Coda the connection fail. What I am doing wrong?

I see Coda support sFTP and I can connect on Coda to the SSH, but not to the sFTP.

Ideas? Work around?

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浮光之海 2024-10-03 06:01:55

至于 coda 实际上在做什么,我不能肯定地说。

解决方法可能是创建一个 ssh 隧道并仅使用 FTP,将 FTP 服务器或防火墙配置为仅允许环回连接

使用以下内容建立隧道:

ssh -o'Port 22222' -f user@server -L 3000:127.0.0.1:21 -N

然后将 FTP 指向本地主机,端口 3000

。 revsys.com/writings/quicktips/ssh-tunnel.html" rel="nofollow">如何:SSH 隧道变得简单

As to what coda is actually doing, I can't say for sure.

Workaround could be to create an ssh tunnel and just use FTP, configure your FTP server or firewall to only allow loopback connections

Establish tunnel using something like:

ssh -o'Port 22222' -f user@server -L 3000:127.0.0.1:21 -N

Then point FTP at localhost, port 3000.

HOWTO: SSH Tunneling Made Easy

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文