Linux SFTP - Certificate requesting password

Asked

Viewed 105 times

1

I need to access an FTP server, from which I have already been sent a certificate called "company.cert".

In Windows, using Winscp, I create a connection using this certificate file, and the connection is done normally, not being asked for any password. But on Linux, I’m asked for a password. The syntax I’m trying is:

sftp -P 58010 -i /home/joao/empresa.cert [email protected]

Where he asks:

Enter passphrase for key '/home/Joao/empresa.cert':

The problem is not with the certificate, because in Windows, it accesses without asking for a password. How to access Linux via SFTP without the certificate asking for a password?

  • Ask them to send you the Private Certificate key and use the following flag in the command "-oIdentityFile=/your/private/key"

  • Erlon, I tried it too, but it still asks for password: sftp -P 58010 -oIdentityFile=/home/Joao/company.cert [email protected]

  • Your command would be as follows: sftp -P 58010 -i /home/Joao/empresa.cert -oIdentityFile=/your/private/empresa.key [email protected]

  • I found out what happened. People later reported that the certificate was generated in PPK, but that the Linux client only accepts the PEM certificate. That’s why it worked on windows and Linux didn’t. They generated another one and sent it to me, and now the problem has been solved.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.