Use cygwin and openssh instead of putty.

Advertisement

kirs
Guest

Use cygwin and openssh instead of putty.

WinSCP has nice putty integration - you can open Putty window and it will pass username/key/password etc.
Is it possible to use cygwin and openssh same way?
How to integrate WinSCP with openssh? What kind of command place in preferences->Putty path?

Thanks!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,252
Location:
Prague, Czechia

Re: Use cygwin and openssh instead of putty.

kirs wrote:

How to integrate WinSCP with openssh? What kind of command place in preferences->Putty path?
It's not possible.
_________________
Martin Prikryl

Reply with quote

Guest

Re: Use cygwin and openssh instead of putty.

martin wrote:

kirs wrote:

How to integrate WinSCP with openssh? What kind of command place in preferences->Putty path?
It's not possible.

I was able to create custom command to run ssh. But it has limitations - I can't make it auth with rsa key - because it doesn't load current user in cygwin and it has no permissions to key file. But it works with regular user:password auth:

c:\cygwin\bin\mintty /bin/ssh !U:!P@!@

This one fails with permissions denied:
c:\cygwin\bin\mintty /bin/ssh !U:!P@!@ -I /home/user/.ssh/id_dsa

Reply with quote

Guest

Re: Use cygwin and openssh instead of putty.

I have command which works if run from windows run menu:
c:\cygwin\bin\mintty /bin/bash -c 'ssh user@host'

But this one doesn't work if run as custom command in WinSCP
Can you help to make it working?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,252
Location:
Prague, Czechia

Re: Use cygwin and openssh instead of putty.

Anonymous wrote:

I have command which works if run from windows run menu:
c:\cygwin\bin\mintty /bin/bash -c 'ssh user@host'

But this one doesn't work if run as custom command in WinSCP
Can you help to make it working?
So what happens if you execute the custom command?
_________________
Martin Prikryl

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,252
Location:
Prague, Czechia

Re: Cygwin Supported via Custom Commands

Artistan wrote:

I wrote up an article here on how to use custom commands to launch cygwin terminals, mintty.

http://blog.geekslikeshinythings.com/2013/08/winscp-and-cygwin.html
Thanks for sharing this.

Actually since WinSCP 5.2.2 beta you can sneak in OpenSSH instead of PuTTY for the Open in PuTTY command as you can now use the !U@!@ even in the path to PuTTY.
I have documented this now:
https://winscp.net/eng/docs/integration_putty#openssh

Reply with quote

Advertisement

You can post new topics in this forum