Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to work with ssh in PhpStorm?

I have the project in the remote server and i have only ssh access. How i can work with this project? I am looking for information for either PhpStorm or NetBeans.

like image 499
Алексей Стародубцев Avatar asked Mar 01 '12 20:03

Алексей Стародубцев


People also ask

How to connect SSH with PhpStorm?

Launch JetBrains Gateway and connect to a remote server Download and install the JetBrains Gateway app. Alternatively, you can access JetBrains Gateway from the welcome screen of your IDE through the Remote Development option. In the Remote Development wizard, click New Connection under the SSH Connection provider.

How do I open the console in PhpStorm?

From the main menu, select View | Tool Windows | Terminal or press Alt+F12 .

Can you ssh in IntelliJ?

You can launch an SSH Session right from IntelliJ IDEA. By running commands in a dedicated SSH terminal, you can access data on a remote Web server or a Vagrant instance (virtual machine) via an SSH tunnel, mainly upload and download files.

How do I SSH in Pycharm?

Launch the SSH TerminalFrom the main menu, choose Tools | Start SSH Session. Alternatively, invoke the Help | Find Action Ctrl+Shift+A dialog, search for start ssh.., and select Start SSH Session.


2 Answers

You have several options, depending on your system.

  1. You can rsync or scp up your files when you want to publish.
  2. You can use version control (cvs, svn, git, mercurial, ...) and via ssh perform an "update" when you wish your code to go live.
  3. You can set up a sshfs filesystem locally.
like image 163
Aron Cederholm Avatar answered Sep 19 '22 17:09

Aron Cederholm


I don't know about NetBeans, but PhpStorm has a feature that allows uploading files as soon as they change to a server (via FTP or SSH).

I don't have a lot of experience with this feature but it does seem to work well. PhpStorm can also be configured to deploy changes that occurred outside (it seems to do so as soon as it regains focus). It also seems to properly delete files that have been deleted from the project, so it's a real sync, not just "upload".

See how to configure it under "To have PhpStorm upload changed files automatically" here: http://www.jetbrains.com/phpstorm/webhelp/uploading-and-downloading-files.html

like image 37
obe Avatar answered Sep 18 '22 17:09

obe