Page 1 of 1

SFTP with Certificate Authentication

Posted: Thu Jan 13, 2022 5:03 pm
by paraffin
Hi

I am trying to connect to a SFTP server where I Authenticate with a User Name and Certificate with Passphrase, there is no Password set and can connect via WinSCP with no issues.

When I try to use RoboTask SFTP Logon I specify the User Name and Certificate including Passphrase, the certificate is in the RoboTask folder but leave Password blank. When it initiates the connection I get this error message

I: 13/01/2022 15:58:51: Executing "1.SFTP Open (redacted@redacted.com)"
E: 13/01/2022 15:58:52: Can't open SFTP session
E: 13/01/2022 15:58:52: redacted@redacted.com's password:
E: 13/01/2022 15:58:52: redacted@redacted.com's password:
E: 13/01/2022 15:58:52: An error occurred. Step #1 (SFTP Open (redacted@redacted.com)).

Is it mandatory to use a password in RoboTask?

Kind Regards
David

Re: SFTP with Certificate Authentication

Posted: Thu Jan 13, 2022 5:51 pm
by Oleg
Read here, we discussed the similar problem: viewtopic.php?t=2968
The example works without problem on our test SSH server.

It seems your server (or PSFTP.EXE) does not understand your key-file and uses standard authorization: username and password
SFTP actions uses PSFTP.EXE utility from PUTTY package
This certificate must be prepared by PUTTYGEN.EXE utility (from PUTTY package too)

Please note that you have to prepare SSH Server to accept certificate.
How to do this read here, here and here

Re: SFTP with Certificate Authentication

Posted: Thu Jan 13, 2022 6:38 pm
by paraffin
I am pretty sure that everything has been setup correctly, I generated the key with PuttyGen and the Public Key loaded up against the SFTP server, I have tested this with WinSCP and FileZilla and they can connect just fine so maybe its a compatibility issue with PSFTP?

Re: SFTP with Certificate Authentication

Posted: Thu Jan 13, 2022 7:07 pm
by paraffin
I have fixed it by updating the PSFTP.exe version to the latest one and it worked fine, I was running 0.74 and now on 0.76

Thanks and hopefully this helps someone else.

Re: SFTP with Certificate Authentication

Posted: Thu Jan 13, 2022 7:15 pm
by Oleg
What version of RoboTask do you use?
We updated PSFT.EXE a couple releases ago...