SFTP with Certificate Authentication

Discuss RoboTask here
Post Reply
paraffin
Posts: 21
Joined: Thu Jul 19, 2018 8:31 pm

SFTP with Certificate Authentication

Post 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
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: SFTP with Certificate Authentication

Post 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
Oleg Yershov
paraffin
Posts: 21
Joined: Thu Jul 19, 2018 8:31 pm

Re: SFTP with Certificate Authentication

Post 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?
paraffin
Posts: 21
Joined: Thu Jul 19, 2018 8:31 pm

Re: SFTP with Certificate Authentication

Post 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.
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: SFTP with Certificate Authentication

Post by Oleg »

What version of RoboTask do you use?
We updated PSFT.EXE a couple releases ago...
Oleg Yershov
Post Reply