PDA

View Full Version : IDE using files over SSH?



jerrylin
September 8th, 2006, 12:45 AM
Hello,

I just made the switch from Windows to Linux yesterday. I'm trying to find a way to SSH to my school server (or mount the server connection as a drive) and work with the files there from a local IDE.

I am able to SSH in through console, and mount the connection in Ubuntu, however, my local IDE (was trying using Eclipse) does not reconize these files.

Is this even possible? Am I doomed to eternal FTP?

toojays
September 8th, 2006, 09:46 AM
On the contrary. Here's a couple of ideas.

Some IDEs support SSH transparently. I know Emacs does (with Tramp mode), and I suspect that KDevelop does (since KDE has had network transparency for a long time).

Another option, which should work no matter what IDE you want to use, is to use sshfs to create an SSH mount. This is probably different to what you did when you said you mounted the connection in Ubuntu. One howto is at http://www.ubuntuforums.org/showthread.php?t=103860

[h2o]
September 9th, 2006, 10:30 AM
Places->Connect to server choose SSH and enter your details. Then browse and open files as usual in nautilus. Works like a charm to me.

gmclachl
September 9th, 2006, 05:29 PM
I was going to suggest the that option, however there are a few problems with that as not all files can be opened with their associated programs. For instance I am unable to open html files with Firefox.

I followed the link suggested and installed sshfs and it's working well.I also wrote a quick python script to mount it at boot time.

George

jerrylin
September 10th, 2006, 06:54 AM
I got all the commands to go through, however now, when I try to access the drive it does not work. Double clicking on it on my desktop does nothing, trying to access it within a program produces an error.

Thanks for the previous replies, I think I'm understanding (and loving) linux more.

-Jerry

[h2o]
September 10th, 2006, 10:44 AM
I had similar problems. That I think had to do with SSH keys colliding or something. Try logging on to your ssh server with a terminal and see if you get any error messages. Resolve everything that hinders you from getting a password prompt directly, and then try "Connect to server" again. That solved it for me.

jerrylin
September 10th, 2006, 05:50 PM
I'm able to SSH in terminal and mount the drive by going to Places -> Connect to Server.

My original problem is neither of these made the SSH folder accessable by eclipse. gedit recognizes the files locally.

The link to the walkthrough further up created a drive on my desktop, however I can't access the ssh folder by clicking browse or trying to open through Eclipse.

Any one have another idea?

Thanks,
-Jerry

kreucher
November 13th, 2007, 08:20 PM
Eclipse doesn't support gnome-vfs like gedit et al do.. But never fear, for SFTP support in Eclipse (basically what you're looking for), check out this plugin:

http://www.jcraft.com/eclipse-sftp/

- nick