Forum Discussion

Oreoluwa's avatar
Oreoluwa
Icon for Altocumulus rankAltocumulus
Dec 18, 2019

AUTOMATIC F5 BACKUP TO SFTP SERVER

Hi Guys,

 

I just deployed an iapp for automated backup and sending to a SFTP server.

 

The issue is that when i generate a private key on the F5 cLI and input it into the column for it on the iapp,

 

when i schedule a backup run, it doesnt work.

 

i check the logs for backup on the CLI and i see that permission is denied for the F5 to the SFTP server. What am i doing wrong. This is urgent please.

6 Replies

  • Hi,

    Usually this kind of error is because you don't trust the key on sftp server.

    Did you sent the pub key to your authorized_keys on sftp server?

    It's just a little shot.

     

    Regards.

    • Oreoluwa's avatar
      Oreoluwa
      Icon for Altocumulus rankAltocumulus

      Do you mean after generating the private key on the F5 then input the key on the authorized_keys directory on the SFTP server?

      • cjunior's avatar
        cjunior
        Icon for Nacreous rankNacreous

        Yes, but the public key, not private that you fill on iApp.

        Are you generanting a RSA key pair, right?

        Regards.

    • Oreoluwa's avatar
      Oreoluwa
      Icon for Altocumulus rankAltocumulus

      Yes i ran the command to send the public key to the authorized_keys on the sftp server.

       

      But when i run that command, i get the error: exec request failed on channel 0.

       

       

      • cjunior's avatar
        cjunior
        Icon for Nacreous rankNacreous

        Hello,

        What do you see when running on command line to debug?

        Did you tried this before?

        ex;

        sftp -vvv -i <id_rsa_file> <username>@<destination>

        Kind regards