ssh - 我可以在 PhpStorm 中进行远程 ssh 终端访问吗?

标签 ssh terminal ide phpstorm

我在本地计算机上使用 PhpStorm、Git 和 VirtualBox 进行本地开发。我使用 Git 处理将工作转移到暂存或生产环境的过程。目前我正在使用 MobaXterm (一个出色的免费选项卡式 ssh 客户端,适用于 Windows)具有终端访问权限以在登台和生产服务器上执行操作。 PhpStorm 有一个内置的本地终端,但我如何使用它来访问多个 ssh 终端?(这样我就可以在我的 IDE 中访问本地、远程暂存和远程生产终端)

最佳答案

想通了!

在新的副本上,PhpStorm 将有 Tools > Terminal 来打开本地终端。要获得额外的 ssh 终端访问权限,这就是我所做的......

  1. 设置服务器
1.1) File > Settings > (Type: "Deployment" into the search box)
1.2) Hit the + button and fill in the necessary fields into the connection tab.
1.3) Click on the "Mappings" tab and clear the field "Local path"
     since we will only be using the terminal.
1.4) Repeat Steps 1.2 and 1.3 for each server you want a terminal tab for.
1.5) Don't set any of these as default, so that you will be prompted to choose
     a server in Step #2 below...

enter image description here

  1. 启动远程终端选项卡(这也将打开本地终端)
2.1) Tools > Start SSH session (this option doesn't appear until Step #1 is   
     completed)
2.2) You will be prompted to select a server from Step #1.
     The terminal window appears and a new tab appears next to "local" in the
     terminal window.

enter image description here

编辑:(感谢 Dan Dascalescu)您可能还需要确保启用 SSH Remote Run 插件。它在 PhpStorm 8 中默认启用(不确定早期版本)。

关于ssh - 我可以在 PhpStorm 中进行远程 ssh 终端访问吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28306166/

相关文章:

eclipse - 有没有办法从 Eclipse IDE 复制代码而不使用富文本格式?

node.js - npm 安装错误 : "Host key verification failed."

git - Jenkins 无法连接到 gerrit 存储库(Windows 安装)

bash - Sed 和 UTF-8 编码

python - 终止使用子进程打开的 gnome 终端

python - 将选定的文本发送到命令行参数

macos - OSX 永久设置 PYTHONPATH

linux - 如何在脚本中的另一台服务器上运行 shell 脚本?

java - DrJava 中的交互式 "Interactions" Pane 如何工作?

go - Go 和 Gogland 的一些技巧