我在本地计算机上使用PhpStorm,Git和VirtualBox进行本地开发。我使用Git来处理将工作转移到临时或生产环境的过程。目前我正在使用MobaXterm(Windows的一个优秀的免费选项卡式ssh客户端)来终端访问在登台和生产服务器上执行操作。 PhpStorm内置了一个本地终端,但是如何使用它来进行多个ssh终端访问?(这样我可以在IDE中进行本地,远程登台和远程生产终端访问)
答案 0 :(得分:6)
想出来了!
在新副本上,PhpStorm将Tools > Terminal
启动本地终端。要获得额外的ssh终端访问权限,这就是我所做的......
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...
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.
编辑:(感谢Dan Dascalescu)您可能还想确保启用SSH Remote Run
插件。默认情况下,它在PhpStorm 8中启用(不确定早期版本)。
答案 1 :(得分:1)