SFTP from windows to Linux server
Hello Guys,
I'm trying to send a file from Windows machine to a Linux machine.
While running the SFTP command from windows, getting the prompt for the password. Is there any way to automate/hardcode the password?
C:\ftp>sftp -B C:\ftp\test.bat user@host
input_userauth_banner
You are authorized to use this System for approved business purposes only.
Use for any other purpose is prohibited. All transactional records, reports,
email, software and other data generated by or residing upon this System,
to the extent permitted by local law, are the property of Citigroup Inc.
or one of its subsidiaries or their affiliates
(individually or collectively ' Citigroup ') and may be used by Citigroup
for any purpose authorized and permissible in your country of work.
Activities on this System are monitored to the extent permitted by local law.
PAM Authentication
Password: ^C
The content in C:\ftp\test.bat file:
cd /tmp
ascii
put CASS_TLM_OpenTrades_201310031_test.txt
quit
|