Impossible to Start a .bat remotely through Sftp?

8bitloser

Distinguished
Feb 9, 2012
80
0
18,630
Ok im very confused on how to actually run a .bat on a remote computer through ssh/sftp in a GUI. My problem is that I havent been using command lines for 15 years, I litterally have never used a command line besides using stuff like ipconfig in command prompt.

I have a ssh server on my home server using FreeSSH'd and The only ssh program i can find with a gui is winscp. Though theres no option to connect through ssh everyone says it does and theres even options for it.

Though when i try to run the bat file i get this error"Current sftp -3 session does not support command you request" then something about a seperate shell session. if i click ok it goes down to starting the session then just sits there and says host is not communication for more than 15 seconds still waiting and only option is to abort

I need halp damnit
 
You can't run a command line and BAT file over an FTP session, even a secure one, SFTP! FTP/SFTP is only for file transfers. You actually have to be using an SSH shell to run a command. In fact, that's the whole point of having a shell, so can run commands on the remote system.

So it just sounds to me like you're confusing one environment w/ the other.

Most ppl use PuTTY for creating a connection to a SSH server. It would probably be best if you did as well since if you then have problems, you'd have a lot more feedback about how to solve them. It works quite well and has numerous other options, such as local and remote port forwarding (no need to worry about what that is now, but if you use SSH anyway, these can come in handy).

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

But again, don't confuse SFTP (or its unsecure cousin, FTP) w/ an SSH session to an SSH server. They serve completely different purposes.