View Single Post
Old 08-17-2005, 07:40 AM
matt131 matt131 is offline
Registered User
Join Date: Mar 2005
Posts: 21
Problem running commands with ssh

OK probably an easy one for you :-)

I am having trouble running the dir command with ssh on Windows servers running vShell (VShell_2_3_1_151) and using OpenSSH (OpenSSH_4.1p1) for the client. I have also tried to use vsh (VSH version 5.0.0 (build 62) starting. (Using SSH2Core version If I make a simple .bat file on the remote server to issue the dir command then execute that with ssh it works. Is there a problem running shell built in commands?

This is what I get
[ 7:25][C:\work]>ssh -p 22 -i c:/.ssh/id_dsa user@server dir
00007: Could not start program (dir): The system cannot find the file specified.

Does this really not work or am I just overlooking something?

Thanks in advance for you help.
Reply With Quote