Bug 495013 - [Terminals] Save Password does not work, still prompts with Password Required
Summary: [Terminals] Save Password does not work, still prompts with Password Required
Status: RESOLVED WORKSFORME
Alias: None
Product: Target Management
Classification: Tools
Component: Terminal (show other bugs)
Version: 4.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: dsdp.tm.core-inbox CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-31 08:19 EDT by Michael Vorburger CLA
Modified: 2016-06-05 20:50 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Vorburger CLA 2016-05-31 08:19:35 EDT
Hello, thank you for making Terminal - it's neat. I particular like the auto reconnect; using this not for remote host, but to always have a localhost SSH CLI into a Karaf OSGi container open.

One minor bug feedback: Using version shown below, I don't think that Save Password option works? Even if I click during creation, then after an e.g. File > Restart, it will pop that Password Required pop-up prompt.

I don't know if this is perhaps due to some issue with that Security Storage? FYI my Preferences > General > Security > Secure Storage: Contents: Target Explorer SSH password, localhost is empty.   During the restart it also does not ask for that (silly..) master password to open secure storage.

org.eclipse.tm.terminal.connector.ssh (4.1.0.201509041418)
org.eclipse.tm.terminal.control (4.1.0.201512010231)
org.eclipse.tm.terminal.view.core (4.0.0.201512160834)
org.eclipse.tm.terminal.view.ui (4.1.0.201603190819)
Comment 1 Martin Oberhuber CLA 2016-05-31 17:43:42 EDT
Can you ssh from commandline into your Karaf container such that we see what kind of password prompt / key exchange it requests ?

ssh -vvv -p $PORT localhost

I remember that there was one issue with the JSch library not properly evaluating the .ssh/known_hosts file for different ports. Please let us know the version of Eclipse Platform / com.jcraft.jsch that you use.
Comment 2 Martin Oberhuber CLA 2016-06-05 20:50:27 EDT
I cannot reproduce the problem.

- CentOS 6.5, Eclipse + CDT Mars.2 64-bit
- Terminal from http://download.eclipse.org/tm/terminal/updates/4.1milestones
- Connect ssh://localhost:4540 with "Save User + Save Password"
  --> Equinox secure storage password is requested
- File Restart
  --> Equinox secure storage password is requested and the Terminal logs on.

I'll close this issue as WORKSFORME for now. Feel free to reopen if you have additional information, like multiple connections to localhost open maybe ? Looking at the description, it's probably more likely you have an issue with your Eclipse Platform. So version of base platform, Linux OS and JRE used would be helpful.