This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
It's not possible to provide SSH keys for remote terminal. For possible implementation, see php.project (have a look at org.netbeans.modules.php.project.connections.sftp package). Product Version: NetBeans IDE Dev (Build 100325-afc95ecdb359) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01 System: Linux version 2.6.31-20-generic running on amd64; UTF-8; cs_CZ (nb)
Sorry but I don't think that this is a P3 because it is quite common to have _only_ SSH key and _no_ password. In such case, remote terminal would be unusable. Moreover, as I wrote, you can have a look at SftpClient in php.project, I guess the connection method could be more or less copy-pasted. Also, if I could help you somehow, I would be glad to do that.
OK, I have added some support of this. As I don't want to introduce any significant UI changes, I do not provide any visible setup for specifying keys file. By default ~/.ssh/id_rsa is used. This could be changed by passing -J-Dssh.keys.file=<file> The same is about known_hosts file. Default is ~/.ssh/known_host and property for changing it is ssh.knonwhosts.file. Perhaps things like this could be moved on a higher level... (like http proxy)
The workflow is not well-defined yet... So we are prompting for a password as before... But if keys are configured, they will be used. changeset: http://hg.netbeans.org/cnd-main/rev/957c9d39bfae I will close this IZ as fixed. Workflow issues should be filed separately, I think.
(In reply to comment #2) > As I don't want to introduce any significant UI changes Why? There's no UI freeze yet... > I do not provide any > visible setup for specifying keys file. By default ~/.ssh/id_rsa is used. > This could be changed by passing -J-Dssh.keys.file=<file> Hmm, too bad for _all_ the Windows users. > The same is about known_hosts file. Default is ~/.ssh/known_host and property > for changing it is ssh.knonwhosts.file. The same as above.
(In reply to comment #3) > The workflow is not well-defined yet... So we are prompting for a password as > before... But if keys are configured, they will be used. Please notice that the JSCH library asks often for passwords itself. > I will close this IZ as fixed. Workflow issues should be filed separately, I > think. Of course, I cannot agree - reasons in my previous commnent (well, in almost all my comments). IMHO the feature as it is implemented now, is not usable for most of NB users.
Reopening, reasons can be found in my previous comments. (In reply to comment #2) > visible setup for specifying keys file. By default ~/.ssh/id_rsa is used. > This could be changed by passing -J-Dssh.keys.file=<file> And what to do if user has different keys for different servers?
If it is targeted to 6.9 then it must be implemented by next Tue COB.
Anyway it looks like Andrew is on it.
Tomas, there was a push with related changes recently. The UI is not final yet, but you are welcome to give it a try and share your opinion. Thanks, =Andrew
(In reply to comment #9) > there was a push with related changes recently. The UI is not final yet, but > you are welcome to give it a try and share your opinion. Where can I find it please? I tried to open a remote terminal (Window > Output > Terminal - Remote Terminal) but no SSH key can be specified. Am I missing something< Thanks. Product Version: NetBeans IDE Dev (Build 100503-2da28aa3df98) Java: 1.6.0_20; Java HotSpot(TM) 64-Bit Server VM 16.3-b01 System: Linux version 2.6.31-21-generic running on amd64; UTF-8; cs_CZ (nb)
Window->Output->Terminal(Experimental)-> Create New Remote Terminal Tab -> Enter User/Host/Port -> OK. At this point it should ask for authentication method... (you may need to start with a fresh userdir) =Andrew
Yes, it works fine now, thanks. Maybe one question - info says that the credentials can be edited in remote server properties - where can one find it, please?
There is no 'global' settings related to remote hosts that belong to the platform ;( [and likely this will not be done in this release] So these hosts properties are only available when CND module is installed. So the only way for you (for now) is to remove/edit {userdir}/config/Preferences/org/netbeans/modules/dlight/nativeexecution.properties file. =Andrew
(In reply to comment #13) > There is no 'global' settings related to remote hosts that belong to the > platform ;( [and likely this will not be done in this release] > > So these hosts properties are only available when CND module is installed. > > So the only way for you (for now) is to remove/edit > {userdir}/config/Preferences/org/netbeans/modules/dlight/nativeexecution.properties > file. Aha, OK. So, my suggestion is - downgrade this bug to P3 (and TM NEXT) or maybe better, close this one and create a new one for remote server settings. Thanks a lot.
Good. Last changes (workflow slightly changed for the initial host setup). http://hg.netbeans.org/cnd-main/rev/83c6881b7dac Will file another issue that need to provide an access to hosts properties when CND is not installed (for users of internal terminal)
Reference IZ: http://netbeans.org/bugzilla/show_bug.cgi?id=179464
*** Bug 153425 has been marked as a duplicate of this bug. ***