How to pass ssh password asked on terminal while using subclipse - eclipse

Our internal svn repository's URI looks like svn+ssh://svn/hogehoge/svnroot/. Using subclipse on eclipse that is run from a terminal, eclipse freezes when I try to access repository and never return. I found on terminal ssh password is asked but looks like it's just printed there and doesn't accept my input (password I enter is interpreted as command on terminal). Any idea is appreciated.
Environment:
Ubuntu 10.04
Eclipse Indigo SP2
Subclipse (Required) 1.6.18
Subversion Client Adapter (Required) 1.6.12
Subversion JavaHL Native Library Adapter (Required) 1.6.17

I would recommend you install SVNKit and change to using it instead of JavaHL. SVNKit includes a pure Java SSH client so it is able to provide a GUI prompt within Eclipse. There are two alternatives if you want to use JavaHL:
Start Eclipse from a Terminal window. SSH prompts will then appear within that window.
Run ssh-agent. Your SSH client will then fetch the keys from ssh-agent and will not need the terminal prompt.
Usually users are already using ssh-agent, in which case I would recommend just using JavaHL. Since you are apparently not using it, I would suggest to just use SVNKit.

Related

eclipse, remote systems explorer, custom commands

I'm on windows machine and using Eclipse to edit some files on UNIX remote. I use Remote System Explorer to browse files over SSH which works superb (comparing with N++ explorer it's a rocket). Now the UNIX files are under ClearCase versioning and I'd like to have some "right click" options in Eclipse's Remote System Explorer, associated with some unix commands (in my case will be ClearCase commands).
Should I start learning to make a simple plugin for this?
Note: There are some ClearCase readily available plugins but all of them requires ClearCase client to be installed on windows machine (which I did) but our admins doesn't allow the windows clients to access version database for security purposes :)
So now I use putty console (Eclipse console) to check in/out files then edit them with Eclipse. Any chance to do'it once like I explain above?
Thanks in advance,
No plugin possible, because ClearCase commands through an Eclipse plugin would be executed on your local machine, and not in the ssh session.
Those cleartool commands (checkout/checkin) must be executed where the view is started (ie on the unix remote server, where the ssh session is)

Connect TortoiseSVN to Ubuntu repository

Our sysadmin created a SVN server on our Ubuntu server and I connect Eclipse to it using: svn+ssh://myuser#111.111.111.111/home/svn/myrepo/trunk but I now want to use Tortoise on my Windows7 machine to connect and I just cannot get it to work.
I right-click on an empty folder TortoiseSVN>Repo-browser and I am prompted to supply a URL. Before anybody recommends it, I did try svn+ssh://myuser#111.111.111.111/home/svn/myrepo/trunk but nothing! It says "Unable to open connection"
Can I even connect TortoiseSVN?
Have you installed all the SSH dependencies for Tortoise to use SVN over SSH? If not have a peek at the tortoise SVN faq section on how to do it specifically the section entitled SSH Client Tools for use with TortoiseSVN.

Minimize ssh windows when Eclipse retrieves info from svn repository

I'm running Eclipse Indigo on Windows XP & Cygwin using the Subclipse plugin with our corporation SVN repository.
Overall it works just fine, however whenever I click on a file in the remote SVN repository a half dozen cmd windows open for the various ssh processes Subclipse spawns using Cygwin's ssh executable. This is very annoying since they pop up directly in front of what I'm working on and steal the cursor focus.
Could anyone tell me how I can insure that when these windows are spawned they're minimized so that they don't interfere?
The best way to do this is to use a GUI SSH client like TortoisePlink which comes with TortoiseSVN. I believe the other option would be to start Eclipse from your Cygwin Terminal. I believe the SSH client will then be connected with that Terminal and not spawn any additional windows.

Debug remote PHP CLI scripts

Here is my situation:
I am developing PHP CLI scripts on a distant server using Eclipse IDE with the RSE plugin (allows to edit files directly on the server).
Now I need to debug these scripts in a similar fashion than in Java (break points, show the variables content, ...).
I found something that could do the job: XDebug and PDT (Eclipse plugin). The problem is that when I try to launch the debug mode Eclipse says that there is no PHP debugger on the local machine. I guess it should be installed on the server machine.
I would like to know if it's possible to use PDT and XDebug to debug remote scripts and, if it's the case, how to configure them to do so. If not, I'd like to know if other solutions exist. It seems like XDebug uses TCP so it should be possible to debug remotely. I can change my IDE if necessary.
The server runs Ubuntu 10.04 with php5-cli and the dev machine with eclipse runs Win7 32bit.
Thanks
Yes this is possible, you need to enable xdebug in the remote server's PHP.ini file and make sure that the xdebug port (default 9000) is not blocked by any firewalls.
xdebug's page on setting up remote debugging.
Here is the complete procedure for the people who have the same problem:
First, install RSE by following the instructions on this website: http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.rse.doc.user/gettingstarted/g1installing.html
Follow the instructions on this HowTo to install XDebug on the server:
http://ubuntuforums.org/showthread.php?t=525257
Install PDT on Eclipse and do the following changes:
- under Windows/Preferences, go under PHP/Debug and change PHP Debugger to XDebug
- under Windows/Preferences, go under PHP/Debug/Installed Debuggers and configure XDebug. Change the field "Accept remote session (JIT)" to "any".
Open the Remote System Explorer perspective, select your scripts directories and create a project from them (Right Click, Create Remote Project). It will now appear in the PHP perspective.
Let Eclipse run and go to the server (e.g. via SSH). Run the script you want to debug. A Window will then appear on Eclipse proposing you to choose with which "local" (remote via RSE in our case) file you want to link the running script to. Normally, the default script proposed should be the correct one, because it is the one running on the server.
You should now have visual debugging with Eclipse for your PHP-CLI scripts!
Do you want to debug while being able to interact with the script on CLI or do you just want to start it and then step through the code? I guess your question is referring to the problem that you can't access the script directly through a URL. If that's your problem, then I guess the easiest solution would be to debug a usual PHP-web-site which requires your script. Then you can launch XDebug with that web-site initially and step into the script through the require/include-statement.
index.php:
<?php require_once("../../../../../dir1/[...]/cliscript.php");
Best regards
Raffael

Eclipse: How to clone git over ssh with keyfile?

Hey, I am using Eclipse (while running Ubuntu 10.10) and would like to connect to a remote git. Normally I would use the egit plugin, but now I need to connect over ssh with keyfile.
Unfortunately egit has no "with keyfile" option, is there a way to connect to my repository with my keyfile?
Is there a "hidden" way to make Eclipse to pass parameters (-i keyfile) to ssh or something?
http://wiki.eclipse.org/EGit/User_Guide/Remote - I had to manually load my existing key in the "Key Management" tab.
I don't know anything about egit. But what you usually do is:
Start ssh-agent (mine is automatically started, when my window manager starts, so you have to google a bit how to setup it)
Run ssh-add [your key]
Use git over ssh as usual. It won't ask you for any passwords, since ssh-agent takes care of it.
HTH