login fail, but runs multiple downloads
I run
Then I run:
On Redhat side I get:
In the debug log, it appears to download the file multiple times. Yet, the file is not on disk. I see multiple
I reran the job and it worked and it appears to only login once this time:
echo open sftp://myuser:mypass@redhat7server.com>files\get.scr echo cd /opt/csv>>files\get.scr echo option transfer ascii>>files\get.scr echo get my.csv>>files\get.scr echo close>>files\get.scr echo exit>>files\get.scr
WinSCP.com /script="get.scr" /log="winscp_debug.log" /loglevel=0 > sendfile.log 2>&1
Jan 24 07:20:02 redhat7server sshd[24131]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=myhost user=myuser Jan 24 07:20:02 redhat7server sshd[24131]: Accepted password for myuser from myip port 59506 ssh2 Jan 24 07:20:02 redhat7server sshd[24131]: pam_unix(sshd:session): session opened for user ldapcsv by (uid=0) Jan 24 07:20:02 redhat7server sshd[24131]: pam_unix(sshd:session): session closed for user ldapcsv
Line 7554: . 2022-01-19 07:20:02.208 Copying "/opt/csv/my.csv" to local directory started. Line 7723: . 2022-01-20 07:20:02.214 Copying "/opt/csv/my.csv" to local directory started. Line 7892: . 2022-01-21 07:20:02.233 Copying "/opt/csv/my.csv" to local directory started.
Jan 24 08:57:42 myredhat7 sshd[7330]: Accepted password for myuser from myip port 59710 ssh2 Jan 24 08:57:42 myredhat7 sshd[7330]: pam_unix(sshd:session): session opened for user myuser by (uid=0) Jan 24 08:57:43 myredhat7 sshd[7330]: pam_unix(sshd:session): session closed for user myuser