mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-28 19:35:36 +02:00
Bug 350176 - Incorrect SSH Settings Summary string. The 'port' value is
modified, not appended.
This commit is contained in:
parent
e7ae930f83
commit
6e8a57dcc3
2 changed files with 1 additions and 8 deletions
|
@ -107,13 +107,6 @@ public class SshConnection extends Thread {
|
|||
String password = fConn.getSshSettings().getPassword();
|
||||
port = fConn.getSshSettings().getPort();
|
||||
|
||||
////Giving a connectionId could be the index into a local
|
||||
////Store where passwords are stored
|
||||
//String connectionId = host;
|
||||
//if (port!=ISshSettings.DEFAULT_SSH_PORT) {
|
||||
// connectionId += ':' + port;
|
||||
//}
|
||||
//UserInfo ui=new MyUserInfo(connectionId, user, password);
|
||||
UserInfo ui=new MyUserInfo(null, user, password);
|
||||
|
||||
Session session = createSession(user, password, host, port,
|
||||
|
|
|
@ -36,7 +36,7 @@ public class SshSettings implements ISshSettings {
|
|||
public String getSummary() {
|
||||
String settings = getUser()+'@'+getHost();
|
||||
if(getPort()!=ISshSettings.DEFAULT_SSH_PORT) {
|
||||
settings += ':' + getPort();
|
||||
settings += ":" + getPort(); //$NON-NLS-1$
|
||||
}
|
||||
return settings;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue