Observing "Couldn't read packet: Bad file number" error when executing sasftpagent script.Please share the solution for it.
"echo '**** Error detected during transfer:'
**** Error detected during transfer:
+ echo ''
Permission denied (publickey).
Couldn't read packet: Bad file number
+ echo '' "
But iam able to connect event source through sftp.
You may have an incorrect or currupted public key in your keystore which is preventing you from connecting and collecting the file(s). Try re-importing the public key from the event source to the log collector. More information on this can be found here Install and Update the SFTP Agent for RSA NetWitness Platform