I need to connect to our SFTP server using the built in Windows sftp
feature and a .bat file which automatically inputs the login data, user and password. I´ve tried everything and just cant figure out the correct way. No matter what I try, it always asks me to manually put in my password. I want to avoid that. It should do the whole SFTP process by itself once it runs.
One thing I tried was this:
sftp sftp://USERXYZ:PASSWORDXYZ@myftp.COMPANY.com
But this still asks me to manually put in my password and to make it worse, it thinks the user is USERXYZ:PASSWORDXYZ
instead of just USERXYZ
Here's my script with dummy values:
sftp sftp://USER@myftp.COMPANY.com
lcd C:\Users\PATHXYZ
cd PATHXYZ
put TESTFILE.txt
bye
Hope you can help me, thanks in advance.