WinSCP remembers path on remote machine and when connects again, remote path is the same as was last time.
Problem occurs when the remote folder was deleted - winscp cannot connect until I create deleted folder or
delete remembered path from system registry.
I think I know what the problem is. There is QNX4 operating system on the remote machine, which generates problem.
When WinSCP try to set current directory, during connection establish, executes command:
cd "/AAAA" ; echo "WinSCP: this is end-of-file:$?"
on Linux machine the response is:
-bash: cd: /AAAA: No such file or directory
WinSCP: this is end-of-file:1
but on QNX4 machine the response is:
/AAAA: bad directory
there is no "WinSCP: this is end-of-file" in reponse.
WinSCP timeouts when waiting on it.
It seems that QNX4 shell breaks executing commands on cd command error.