Bug 369841 - User uneditable on SSH-Key password dialog
Summary: User uneditable on SSH-Key password dialog
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Debug CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-26 12:22 EST by Allan Chappell CLA
Modified: 2020-05-14 10:16 EDT (History)
0 users

See Also:


Attachments
Screenshot of dialog in question (83.52 KB, image/png)
2012-01-26 12:25 EST, Allan Chappell CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Chappell CLA 2012-01-26 12:22:56 EST
Build Identifier: Version: 3.0.2

I cannot change the user that is used to unlock my SSH key. It is stuck on the same user that is used to log into the SSH account. 

In this case, my local user's name is allan, and my remote user's name is achappell. So I set up Xdebug to tunnel through ssh using achappell and no password, because I can use my key. My key is password protected, therefore, at this point I'm presented with a dialog that says "Passphrase for /home/allan/.ssh/id_rsa" with "achappell" in the username and nothing in the password. If I just type in my password (associated with the key) it fails. I assume this is because the user *should be* allan, which is my local user name.

Suggested solutions:
1) make it where eclipse uses the current user's name, and no username is required to be entered.
2) make it so that the username is editable on this one dialog.

Test Requirements:
1) a remote debugging server set up to allow access via ssh keys. Here's an HowTo: http://pkeck.myweb.uga.edu/ssh/
2) your local private SSH key requires a password to use.
3) your local user name is different than the remote user name. 

Reproducible: Always

Steps to Reproduce:
1) Navigate to Run->Debug Configurations
2) Click the "New Launch Configuration" above the left hand pane or right click and select "New" from the context menu.
3) Under the Server Tab, click "New" next to the "PHP Server" Dropdown
4) In the "PHP Server Creation" dialog Type a Name for the Server.
5) Type the base url to the remote server.
6) Click Next
7) Select a path mapping that fits the needs of your local filesystem and remote server
8) Click Finish.
9) Under the Advanced Tab, check "Debug Through SSH Tunnel"
10) Type in your user name to the remote server.
11) Click "Test Connection"
Comment 1 Allan Chappell CLA 2012-01-26 12:25:24 EST
Created attachment 210134 [details]
Screenshot of dialog in question
Comment 2 Allan Chappell CLA 2012-02-24 09:53:58 EST
For anyone else having the problem, A good work around is to just go to command line and use the command

ssh -R 9000:localhost:9000 user@server.com

If you aren't planning on using the remote machine's command line prompt you can instead do the following

ssh -N -R 9000:localhost:9000 user@server.com &