Skip to main content

Hi, I have been given a combination of HOST, PORT, Username and Password for a SFTP connection and an SSHPASS to connect to a SFTP server. I am unaware of how we can use the SSHPASS in the connector config. 

 

So, I have the below details:

USER=<username>

HOST=<host domain/IP>

Port-<port>

#PASSWORD=<password for the user>

export SSHPASS=<Its just a alphanumeric passcode.>

 

I tried using a SFTP client and the username and password doesnot work and I cant find a way to use the SSHPass even there. Need help in understanding if this is possible to do in SFTP through Mule 4. Any help will be appreciated.

1 risposta
  1. 29 gen 2021, 08:47

    Hi @Sucharita Das​ 

     

    If I am not wrong then you are talking about using the Passphrase along with SSH file.

    The you get an option in SFTP to do that.

     

    Save you file in the src/main/resource folder and then in SFTP do the below config:

    Hi @Sucharita Das​ If I am not wrong then you are talking about using the Passphrase along with SSH file.The you get an option in SFTP to do that.Provide the Host, Port, Username, In Identity file provide the location where you shaved the file along with the file name (src/main/resource/<filename>), in Passphrase give the key you have for passphrase.

     

    Regards,

    Abhishek Bathwal

0/9000