No such file or directory. Error code: 2 Error message from server: No such file

Advertisement

kevinmc
Joined:
Posts:
1
Location:
Durham England

No such file or directory. Error code: 2 Error message from server: No such file

Hi, I've downloaded WinSCP today. I'm trying to run a scripting from the command line before I set it to a scheduled job. the command I'm using opens WinSCP and seems to connect but I then get the message "No such file or directory. Error code: 2 Error message from server: No such file".
The command I'm using is:
C:\Users\user\AppData\Local\Programs\WinSCP\WinSCP.exe
"sftp://user:password@ipaddress/var/www/ -hostkey =""ssh-ed25519xxxxxx3:12:27""" "put C:\test\tracker.sql /sql_upload/"

I know that C:\test\tracker.sql is definitely a valid path

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,469
Location:
Prague, Czechia

Re: No such file or directory. Error code: 2 Error message from server: No such file

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

You can post new topics in this forum