I require to sftp files from one linux server to another using password authentication. I need to call this script from SAP BODS by passing input parameters
Is this fulfilled your requirement?. May be try the one which I posted above.
- scott 4 years, 7 months agoinstall this in your unix machine sudo apt-get install sshpass. Also you commented on Answer that is only for providing answers. Please delete that.
- scott 4 years, 7 months agoWelcome, regarding code snippets, after install you can use the above sshpass command in your shell script. Hopefully it should work.
- scott 4 years, 7 months ago@Scott..I am still waiting for the sshpass to be installed since I don't have sudo access to install it. Once done I will test this and close the ticket.
- meena 4 years, 7 months ago@Meena Thanks for letting me know, please make sure to respond in a week. Otherwise ticket will be closed.
- scott 4 years, 7 months agoAs we dont get any response from the user, we are closing the ticket. Respective points will be distributed to the techions.
- Vengat
@ Meena I would suggest, as SAP BODS hosted on Linux server, then add the 2 LINUX machine where you need to copy the files into SAP BODS .ssh_key file.
Generally, we have create the private key pair between 2 systems and added into ssh_pub file where SAP BODS hosted. Now without using password , you can transfer the files among 3 machines. So generally this one is the recommended approach.
Or
May be try sshpass ,pass with
sshpass -p "your password"
at the beginning of yourscp
commandBut this one is not recommended one.