Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I configure RubyMine 5 to edit remote files over SSH

I've got sort of a simple problem, but I can't seem to find any conclusive answers on the web. So, I have Ubuntu Server running in VirtualBox with Ruby and Rails installed.

What I want to do, is edit the files in the VM over SSH using RubyMine 5.0 on the Windows host machine (just like I can in Eclipse).

The problem is I can't find how to do that. I'm pretty sure it can be done, because I've found some related articles on the web, but none of them show me how I can configure RubyMine to do that.

I've searched every option in the menu and I can't figure it out by myself, so a "to the point" explanation would really be of help.

Thanks

like image 720
mihaibaboi Avatar asked Feb 28 '13 16:02

mihaibaboi


People also ask

Can IntelliJ open remote project?

If you already have IntelliJ IDEA installed on your remote server, you can launch it manually and connect to the remote project started in that IDE. It works the same way as from JetBrains Gateway.

Does IntelliJ have remote SSH?

On the IntelliJ IDEA welcome screen, select Remote Development. In the Run the IDE Remotely section, click SSH Connection. If you have the IDE already running on the remote server and you have a connection link, you can use the Connect to Remote Host With a Link section.


1 Answers

There is no way to do this natively in RubyMine. My solution is to mount the remote filesystem to a local folder using sshfs.

  • Linux you can get sshfs through your package manager.

  • OSX you can get it here make sure to install both OSX fuse and SSHFS. The version on HomeBrew did not work for me on OSX 10.9.4 so I recommend using the packages from the link.

  • Windows you can use win-sshfs, I've had good results using Chocolaty to install win-sshfs

To use on Linux/OSX:

  • Open your terminal.
  • mkdir MountFolder
  • sshfs [email protected]:/path/to/project MountFolder/

To use on Windows:

  • Use the GUI.

After you've mounted the remote file system open RubyMine and select Open Directory and browse to the project.

This is the best solution I can come up with until JetBrains supports it natively.

like image 120
almyz125 Avatar answered Oct 14 '22 04:10

almyz125