1. I register an SSH Server without a username or password
2. I then try to Connect to browser the server and it prompts me for a password, but not a username
3. Browse connection fails.
|
15 KB
What fields are required fields when SSH Connection dialog is used to register a server? Are user name and host name are required in order to register a SSH server? If answer is yes, we should add validation check to SSH Connection dialog code, it currently allows you to create a server without user name and/or host name specified which just seems to be weird. Is there any reason that we want to do this? I can understand that user does not want to save password and/or passphrase along with server properties because those are sensitive information, but why user name and host name are optional fields? If user register a server without user name and host name specified, what does this mean?
On UNIX, this is the way how ssh client works:
(1) a hostname is always required on the command line,
(2) if username is not specified, the current username is used.
I made change so that if username is not specified in the property file, the current username is assumed and NO dialog prompted for username. Schema tree node did not deal with hostname at the moment, if it is not specified, an exception will be thrown from Jsch.
If we really want to give user the flexibility to register a server without specifying hostname, then re-open this issue or log a new issue, and I will take care of it; otherwise, we should add validation code to the SSH Connection Dialog.
On UNIX, this is the way how ssh client works:
(1) a hostname is always required on the command line,
(2) if username is not specified, the current username is used.
I made change so that if username is not specified in the property file, the current username is assumed and NO dialog prompted for username. Schema tree node did not deal with hostname at the moment, if it is not specified, an exception will be thrown from Jsch.
If we really want to give user the flexibility to register a server without specifying hostname, then re-open this issue or log a new issue, and I will take care of it; otherwise, we should add validation code to the SSH Connection Dialog.
Issue #6396 |
Reopened |
Completion |
No due date |
Fixed Build ADS-11.0.0 branch/r25242 |
No time estimate |
What fields are required fields when SSH Connection dialog is used to register a server? Are user name and host name are required in order to register a SSH server? If answer is yes, we should add validation check to SSH Connection dialog code, it currently allows you to create a server without user name and/or host name specified which just seems to be weird. Is there any reason that we want to do this? I can understand that user does not want to save password and/or passphrase along with server properties because those are sensitive information, but why user name and host name are optional fields? If user register a server without user name and host name specified, what does this mean?