I'm trying to setup a SSH session using putty from rdm. For login I use a keyfile that is loaded via pageant (so only need to provide login name in the session, pageant does rest of authentiation). Running putty by hand (also command line) is working fine, but when run from rdm (embedded or external), pageant somehow cannot interact with the session. (resulting in no supported autentication methods available, as the session cannot be authenticated by a plain password).
Hi,
I don't know what might be the problem, but maybe it's only a problem of working folder. I never tested Putty with pageant. Can you try to configure a command line session type and do the call it manually and see if it works (with the working folder correctly set).
Let me know, if this help I will be able to do a fix.
David Hervieux
Hi David, couldn't get it to work. Running directly from the windows (7) startmenu did work, where putty is not in my path setting. From rdm with working env I got the same results.
eg "C:\Program Files (x86)\PuTTY\putty.exe" -ssh host -l user
Is it started in some kind of restricted shell?
Maybe, there is an option to run as administrator, have you tried ?
David Hervieux
Yes, with the same results.
Hum, it's weird. There should not be any difference. I will send you a small application today to do some test.
David Hervieux
Hi,
Can you try to install Putty in another folder than program files, for example c:\Putty. Also, have you try to execute the command line 64 bits ? I did this small application, you can give it a try. Let me know.
David Hervieux
CmdTester.ex
Hi,
- tried 64-bit, with/without admin - no luck
- tried putty in c:\temp - no luck
- tried even with -agent command line - no luck
- tried cmdtester, with all the variatins of boxes (un)checked - no luck
- tried just plain cmd, and running putty from the cmdline - no luck
(in all cases, using a host with password logon worked, using a site where pageant should kick in no luck)
- tried cmd via windows startmenu - ok
been playing further
- don't know what exactly the difference is (perhaps I (un)checked the boxes more gently or so):
- cmdtester: running not as administrator -- yes!
- running via cmd line session not as administrator - yes!
- running putty session - yes!
(hmm, other thing I did was restart rdm...) I'll keep an eye on this one.
edited by jhd on 1/26/2011
Really weird. let me know if you still have the problem
David Hervieux
Managed to reproduce it.
I've installed the lastest beta using the setup, and had it started from the install --> pageant cannot communicate.
Closing rdm, and starting it manually --> it works again
Hi,
I suspect that the installer start the application in Administrator mode and maybe pageant is in another context. Can you try to Run As Administrator RDM and see if it's fail. If it's the case, you could try to run both As Administrator and see the result.
Let me know,
David Hervieux
David, yep - you are right.
Starting RDP from installer + pageant non-admin ==> fail
Starting RDP from installer + pageant admin ==> ok
Starting RDP admin + pageant non-admin ==> fail
Starting RDP admin + pageant admin ==> ok
Hans