Re: Sending Windows Command in SSH from Unix



On Wed, May 30, 2007 at 03:46:05PM +0800, Hariram, Sankarlal wrote:

[snip]

And following is my command and the verbose log.


$ ssh -i /mrs/home/mrsop/.ssh/zmis_rsa -v ssh@windowsbox cmd /C rename
C:/ssh/first.txt second.txt


Hi Sankar... have you tried putting single or double quotes around the
windows command?

ssh -i /mrs/home/mrsop/.ssh/zmis_rsa -v ssh@windowsbox "cmd /C rename
C:/ssh/first.txt second.txt"

Also, what package are you using to run sshd on a windows box?

~ stevo