"java -cp abc.jar xyz.Main" command on console in WinSCP gives error "unable to fetch console" itself, tries for multiple times and exits with maximum attempts are done.
Asked
Active
Viewed 34 times
1 Answers
0
Your Java program requires probably interactive terminal (TTY).
WinSCP console window does not implement an interactive terminal.
See section about limitations of executing commands in WinSCP.
You have to use SSH terminal client that implements full terminal, like PuTTY. You can actually execute PuTTY from WinSCP itself.

Martin Prikryl
- 188,800
- 56
- 490
- 992