SFTP plugin under VPN

English support forum

Moderators: Hacker, petermad, Stefan2, white

obmana
Junior Member
Junior Member
Posts: 53
Joined: 2013-08-28, 15:35 UTC

Post by *obmana »

I tried SFTP plugin on Windows, and again it behaves the same as on Wine - it cannot connect when using VPN for server access, so this doesn't seem like Wine problem but OpenSSH problem.

Further, if I use pageant, I can successfully connect under Windows, but not under Wine, where I recieve this error:
Failure requesting identities from ssh-agent!
I also tried putty under Wine, while pageant is running in background with loaded key, and it also cannot connect, raising:
Disconnected: No supported auth methods available (server sent: publickey)
If I exit pageant and load the key in putty, I can successfully connect. So it seems that communication between pageant and other application the uses its service fails, probably due to Wine.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50505
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

1. Could you try to launch Pageant from within Total Commander?

2. If pageant can handle the correct credentials but it doesn't work internally, it means that the key is in wrong format. OpenSSH uses different key formats than Pageant. Check this page for converting to pub/pem format:
http://stackoverflow.com/questions/2224066/how-to-convert-ssh-keypairs-generated-using-puttygenwindows-into-key-pairs-use
Author of Total Commander
https://www.ghisler.com
obmana
Junior Member
Junior Member
Posts: 53
Joined: 2013-08-28, 15:35 UTC

Post by *obmana »

1. I created link for pageant and ppk key as attribute and launched it from totalcmd. It was a bit of pain making this link under Wine, but anyway results is same. It seems like communication between pageant service is somehow broken on Wine. On Windows as mentioned it connects successfully (with same key obviously)

2. I previously tried that also following instruction on http://www.ghisler.ch/board/viewtopic.php?t=19994 (Authentication using a client certificate in OpenSSH format) and received:
Error: Authentication by client certificate failed.
I get the same error following instructions on your linked SO answer, unfortunately.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50505
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

1. OK, so pageant cannot communicate with other programs on Linux. Too bad. :(

2. Are you 100% sure the file format is correct? TC needs OpenSSH format.
Author of Total Commander
https://www.ghisler.com
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

You can get DebugView and then try with dlls from:

http://web.hisoftware.cz/sob/tc/sftplug-debug-dlls.7z

The libssh2.dll is slightly changed, so that it sends every single debugging message to OutputDebugString() function, which DebugView captures. You'll also need (if you don't have it already) VC++ 2013 Redistributable Package.
Post Reply