login about faq

An attempt to execute a remote command on a Windows server fails, server debug has "CreateProcessAsUser() failed (2) " after "requesting command execution ".

asked Dec 29 '10 at 19:51

SSH%20KB's gravatar image

SSH KB ♦
509250247238


The user is able to login and have interactive terminal access but an attempt to execute a remote command on a Windows server fails.

Server Error Message: "SshWinPipeCommon: CreateProcessAsUser() failed (2) " after "Ssh2ChannelSession: requesting command execution "

Solution:

Some Windows commands are built in the cmd.exe program so the "cmd /C command " syntax is needed.

For example: ssh2 user@windowshost "cmd /C dir"

link

answered Dec 29 '10 at 19:52

SSH%20KB's gravatar image

SSH KB ♦
509250247238

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×5
×4

Asked: Dec 29 '10 at 19:51

Seen: 3,696 times

Last updated: Mar 10 '11 at 00:22

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.