Hi,
I have script which does the sftp function. In the script in one place it able to read the password from file and other place files with below error.
warning: has much more security than supplying the password in the clear
warning: on the command line.
Failed to get password: File Profile couldn't be read: faulty permissions.
the sftp command in script -->
Failed one-->
sftp --password=file://CNRHIDProfile -b 1000000000 -B CNRHIDBatch -v ftp@tst4517 1>>sftp1.log 2>>sftp2.log
Working one -->
sftp --password=file://CNRHIDProfile -b 1000000000 -B CNRHIDPatcher -v ftp@tst4517 1>>sftp1.log 2>>sftp2.log
Note: Both the commands read the same password file.
Regards,
Vinodh Kumar