-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ssh connection on a Windows client #167
Comments
I will look into this. This used to work in the past with a couple different ssh packages for windows but this was prior to switching the windows builds to use mingw64 so perhaps there is either some incompatibility or the compiles with mingw64 exposed some bugs. I would prefer not to include plink in the MDSPlus distributions. To use plink with the existing ssh plugin you would need to make an ssh.bat file and put it in your PATH which would in turn run plink. It would be possible to make a simple plink plugin for mdsip which would only require the plink.exe to be in your PATH. There are also rumors about Microsoft finally providing traditional ssh client and server implementations too. In any event I will see if I can track down the problem with the tunneling plugin on windows. It is currently segfaulting very early in the connect code which constructs a shell command, opens pipes for stdin and stdout and creates a subprocess to run the command. stdin and stdout are then just used to communicate through the ssh connection. Used to work but does not now. |
related #231 |
Timo Is this still a problem or was it fixed with: #231 ? |
Hm I cannot get it to work.. when executing from Linux the ssh login and remote call of mdsip-server-ssh does not return. However, the windows variant does after you entered you password. It does not return anymore if you replace %2 with ". /etc/profile;%2".
probably due to a incorrect translation of the ssh datastream done by plink. plink -agent -batch -L 8000:%server%:8000 %user%@%server% -N |
Weird. This worked without a hitch on my windows system with plink. I'll On 12/15/2015 11:06 AM, zack-vii wrote:
|
I just verified this works with plink on a clean install of putty with mdsplus-alpha-7.0.196 and mdsplus-alpha-7.0.197. The steps I used to test this is:
The above worked fine on my system (Windows 10 clean install). It had also worked on Windows 7 prior to the Window 10 install with mdsplus-alpha-7.0.196. Note that the username@ is needed in the connection string otherwise plink will prompt for the username which breaks the mdsip tunneling. |
As Windows does not ship with a native ssh client, Windows ssh connections are no standard. MDSplus cannot connect from Windows or even crashes when trying to connect (e.g. by setting the environment variable '_path' to "ssh://::"). Is there already a workaround?
My suggestion adding a mdsip-client-ssh.bat in the system folder that uses a putty representation plink.exe ('http://the.earth.li/~sgtatham/putty/0.53b/htmldoc/Chapter7.html'). plink is very light weight <400KB and could be added to the MDSplus bundle.
But it seems to need a bit more changes in the C code in order to work, i.e. it is not just the call of "mdsip-client-ssh "
The text was updated successfully, but these errors were encountered: