"open" not completely logging in
Trying to get this set so WinSCP will keep the local (Windows) folder synchronized with the remote (Linux) machine folder.
This opens WinSCP program itself but stops there. What am I missing? Pageant is running and logging in normally with the program is fine.
@echo off "C:\Program Files (x86)\WinSCP\WinSCP.exe" open sftp://root@ipremoved/ -hostkey="hostkey_removed=" -privatekey="D:\Cryp\server\Private Keys\server_key.ppk" "synchronize local D:\server backups /root/winscp_sync" "exit" set WINSCP_RESULT=%ERRORLEVEL% if %WINSCP_RESULT% equ 0 ( echo Success ) else ( echo Error ) exit /b %WINSCP_RESULT