mihaibaboi mihaibaboi - 1 month ago 15
Ruby Question

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

Answer

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 user@server.com:/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.

Comments