如何将 vscode 与 SiteGround 结合使用

发布于 2025-01-15 23:35:30 字数 589 浏览 1 评论 0原文

我现在正在开发基于 Laravel 的网站。 这个网站位于 SiteGround 上。 如您所知,vscode 让我们作为开发人员的生活变得更加轻松。 因此,我想使用 vscode 在本地工作,并将更改重新反映到 siteground,而无需手动上传文件。 我按照下面的指南进行操作,但似乎没有帮助。 https://netosec.com/visual-studio -code-remote-sync-to-siteground-shared-hosting/

请帮助我。

https://netosec.com/visual-studio -代码远程同步到siteground-shared-hosting/ 我多次尝试遵循该指南,但没有成功。

I am now developing Laravel-based website.
And this website is on SiteGround.
As you know, vscode makes our lives as developers so much easier.
So I want to work locally using vscode and relfect changes to siteground without uploading files manually.
I followed this guide below but it doesn't seem to help.
https://netosec.com/visual-studio-code-remote-sync-to-siteground-shared-hosting/

Please help me.

https://netosec.com/visual-studio-code-remote-sync-to-siteground-shared-hosting/
I tried to follow this guide several times, but it doesn't work.

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

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

发布评论

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

评论(1

旧话新听 2025-01-22 23:35:30

您引用的文章是正确的。几个月前,我尝试做同样的事情来让它发挥作用。问题在于 Siteground 不允许 VS Code 正确安装 VS Code 所需的“远程服务器”。我读了这篇文章,它似乎遗漏了如何创建 SSH 密钥并使用它们,这就是我猜测的问题所在。

根据我的经验,了解 SSH 密钥的工作原理有助于我解决连接问题。您会在这里找到一些不错的信息: https://www.digitalocean.com/community/tutorials/ssh-essentials-working-with-ssh-servers-clients-and-keys

本教程中使用的 VS Code 扩展还包含列出必须定义的连接参数的文档。可以在这里找到:

https://github.com/liximomo/vscode-sftp

更新

liximomo 插件现已弃用。请使用以下扩展名代替

扩展名:
https://marketplace.visualstudio.com/items?itemName=Natizyskunk.sftp

配置:
https://github.com/Natizyskunk/vscode-sftp/wiki/仅 SFTP 配置

The article you referenced is correct. A few months ago I tried to do the same thing to get it to work. The problem is that Siteground does not allow VS Code to properly install the "remote server" needed by VS Code. I read the article and it seems to leave out how to create SSH keys and use them which is what I am guessing is the problem.

From my experience understanding how SSH keys worked helped me troubleshoot the connection problem. You'll find some good info here: https://www.digitalocean.com/community/tutorials/ssh-essentials-working-with-ssh-servers-clients-and-keys

The VS Code extension used in the tutorial also has documentation listing out the connection parameters that must be defined. It can be found here:

https://github.com/liximomo/vscode-sftp

Update

The liximomo plugin is now deprecated. please use the following extension instead

Extension:
https://marketplace.visualstudio.com/items?itemName=Natizyskunk.sftp

Configuration:
https://github.com/Natizyskunk/vscode-sftp/wiki/SFTP-only-Configuration

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