Not able to connect to SFTP server: "ssh-agent (Pageant)"

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
neena95
Junior Member
Junior Member
Posts: 6
Joined: 2023-03-15, 23:25 UTC

Not able to connect to SFTP server: "ssh-agent (Pageant)"

Post by *neena95 »

Hello forum!

I am not able to connect to a SFTP server through total commander. I have installed new version of SFTP plugin. Here is the error message I get on TC when I try to connect
---------
SFTP error
Failure connecting to ssh-agent (Pageant)!
You can put a link file named pageant.lnk in the plugin directory to launch pageant, e.g. pointing to
c:/path/pageant.exe keyfilename
---------
I do not understand the fix recommended in the last 2 lines of the error message. What else could be going wrong in the connection?

Many thanks,
Neena
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Not able to connect to SFTP server: "ssh-agent (Pageant)"

Post by *Stefan2 »

Me think that your SSH private key is missed.
Just google for """ssh-agent (Pageant) how to""" or like that, e.g. google and read about SFTP, WinSCP , PuTTY , puttygen





 
neena95
Junior Member
Junior Member
Posts: 6
Joined: 2023-03-15, 23:25 UTC

Re: Not able to connect to SFTP server: "ssh-agent (Pageant)"

Post by *neena95 »

Thank you Stefan,

But my remote server is not configured to accept SSH private key. I was asked to do a simple login on the server with password only, without SSH key.
How do I go about this?
Please note that I am able to connect to the server via PUTTY terminal using username and password, without having to add any SSH private key in session setting.

Many thanks for your help,
Neena
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Not able to connect to SFTP server: "ssh-agent (Pageant)"

Post by *Stefan2 »

-- You get """SFTP error - Failure connecting to ssh-agent (Pageant)!"""
-- But """remote server is not configured to accept SSH private key.""" + """simple login on the server with password only, without SSH key."""

How do you connect to a SFTP server through total commander?
What do you do, step-by-step.
Create an screenshot of your SFTP-Plugin settings and post here the URL to that picture at an external picture Hoster.


Here are some screenshots of that plugin (pic. 4-6):
https://feriman.com/configure-scp-sftp-with-total-commander-step-by-step-guide/






 
neena95
Junior Member
Junior Member
Posts: 6
Joined: 2023-03-15, 23:25 UTC

Re: Not able to connect to SFTP server: "ssh-agent (Pageant)"

Post by *neena95 »

Hi Stefan,

How do I copy-paste screenshots here? I am not able to attach anything with image icon.

Thank you,
Neena
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Not able to connect to SFTP server: "ssh-agent (Pageant)"

Post by *Stefan2 »

""" post here the URL to that picture at an external picture Hoster."""" ?

For details see >> viewtopic.php?p=287482#p287482







 
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Not able to connect to SFTP server: "ssh-agent (Pageant)"

Post by *Stefan2 »

Danke, und tatsächlich, ich habe ja mich nicht getraut zu fragen, aber, du hast doch "Use PuTTY (Pageant)" angehakt,
also wird das auch verwendet, aber der Server will das ja nicht, so wie du oben schriebst.

Wenn du diese Option nicht verwenden sollst, warum ist sie dann bei dir eingeschaltet?







 
neena95
Junior Member
Junior Member
Posts: 6
Joined: 2023-03-15, 23:25 UTC

Re: Not able to connect to SFTP server: "ssh-agent (Pageant)"

Post by *neena95 »

Good catch! I unclicked "use Putty agent"

New error message:

libssh2_userauth_keyboard_interactive: PUBLICKEY_UNRECOGNIZED (18)
Error: Authentication by keyboard_interactive failed!

How to get around this new error?

Thank you so much Stefan!
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Not able to connect to SFTP server: "ssh-agent (Pageant)"

Post by *Stefan2 »

I am not sure if this is related >> https://www.ghisler.com/openssl/ ?
Which TC version and Bitness , and which OS do you use? (press Win- and Pause-key together)

Do you have this files in your TC and/or "64" sub folder ?
libeay32.dll
libssh2.dll
ssleay32.dll
zlib1.dll

Try menu "Configuration > Options... > FTP > [x]Create a log file"
This option also logs all plugins like SFTP.




 
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Not able to connect to SFTP server: "ssh-agent (Pageant)"

Post by *ghisler(Author) »

I am not sure if this is related
No, it's not related. That's for FTPS connections (FTP over SSL), not for SFTP.

Here someone had the same problem:
https://www.ghisler.ch/board/viewtopic.php?t=74653&start=15
The error means that the server uses an outdated, insecure algorithm like RSA with SHA1. Support for that was removed from the OpenSSH library for security reasons.

You may be able to see more details when enabling an FTP log file, that will also log all plugin errors:
Menu Configuration - Options - FTP - Log file.
Author of Total Commander
https://www.ghisler.com
neena95
Junior Member
Junior Member
Posts: 6
Joined: 2023-03-15, 23:25 UTC

Re: Not able to connect to SFTP server: "ssh-agent (Pageant)"

Post by *neena95 »

Thank you for the detailed information, so this means that I will not be able to connect to the server at all through total commander.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Not able to connect to SFTP server: "ssh-agent (Pageant)"

Post by *ghisler(Author) »

You will have to ask the server maintainer to update the server software to use modern encryption methods.
Author of Total Commander
https://www.ghisler.com
Post Reply