Net::OpenSSH::ShellQuoter::MSCmd(3pm)

Net::OpenSSH::ShellQuoter::MSCmd3pm

Quoter for windows cmd.exe

Overview

This quoter is intended for interaction with SSH servers running on Windows which invoke the requested commands through the "cmd.exe" shell.

Because of "cmd.exe" not doing wildcard expansion (on Windows this task is left to the final command), glob quoting just quotes everything.

Some Windows servers use "Win32::CreateProcess" to run the "cmd.exe" shell which runs the requested command. In that case, both the "MSCmd" and "MSWin" quoters have to be chained (and BTW, order matters):

   $ssh = Net::OpenSSH->new(...,
                            remote_shell => 'MSCmd,MSWin');

Actually, "cmd.exe" may require not quoting at all when the requested command is a builtin (for instance, "echo").

Releases

7 releases since Debian 8 (Jessie); the text changed 6 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13
  7. Arch

From perl-net-openssh 0.84-5 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.