简体   繁体   English

如何从Windows SSH服务器(从远程Windows计算机上的Linux计算机)运行批处理文件本地设置

[英]How to run a batch file localy from windows ssh server (from linux machine on remote windows machine)

I trying to run a following batch file: 我试图运行以下批处理文件:

echo on
title My Batch File
:: See title 
call myApplication.exe
echo I am done
pause

I tried two different scenarios: If I want to launch an application with GUI it tells me that I don't have enough space 我尝试了两种不同的方案:如果我想使用GUI启动应用程序,它会告诉我我没有足够的空间

Not enough storage is available to process this command.

If I want to do something very light, a program as simple as printing something on command prompt, it will do the work. 如果我想做的很轻巧,就像在命令提示符下打印内容一样简单的程序,它将完成工作。

My real difficulty: I need to launch a cmd on the remote machine not in my ssh terminal. 我真正的困难:我需要在远程计算机上而不是在ssh终端中启动cmd。 The reason is I need to access the usb-drive on the local windows machine, but this situation I cannot really do it. 原因是我需要访问本地Windows计算机上的USB驱动器,但是这种情况我不能真正做到。 What I really need to do: open command prompt remotely on a windows machine Thank you 我真正需要做的是:在Windows计算机上远程打开命令提示符谢谢

My setup: 我的设置:

host PC : Debian Linux Remote PC: Windows 10 running ssh server (default to Windows 10) 主机PC:Debian Linux远程PC:运行ssh服务器的Windows 10(默认为Windows 10)

What ssh server are you using? 您正在使用什么ssh服务器? Try cygwin or likes because windows doesnt have built in ssh servers. 请尝试cygwin或likes,因为Windows尚未内置ssh服务器。 It does have a telnet client. 它确实有一个telnet客户端。 If security is not an issue and the linux server is running locally, you can try doing that. 如果安全性不是问题,并且linux服务器在本地运行,则可以尝试这样做。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在没有Cygwin的情况下将文件从远程Windows计算机复制到Linux计算机 - Copy a file from remote Windows machine to Linux machine without Cygwin 是否可以通过Linux在Windows计算机上远程运行批处理脚本而无需安装ssh? - Is it possible to run a batch script remotely on a Windows machine from Linux without installing ssh? 从Linux机器将mySQLdump转储到远程服务器上的已安装Windows文件夹 - mySQLdump from Linux machine to a mounted Windows folder on a remote server 使用staf将文件从linux复制到远程Windows机器 - Copy file from linux to remote windows machine using staf 通过另一台Windows计算机上的批处理文件登录到远程Windows计算机 - login to remote windows machine through batch file from another windows machine 如何在远程Windows计算机上从Java运行批处理脚本 - How can I run a batch script from java on a remote windows machine 如何通过 Z1787D7646304C5D987CF4E64ZA 将 Windows cmd output 从本地机器重定向到远程文件 - How to redirect Windows cmd output from local machine to remote file via ssh 当我从Linux机器尝试到Windows ssh客户端服务器时,来自pexpect(pxssh)的SSH失败 - SSH from pexpect (pxssh) fails when I try from a linux machine to a windows ssh client server 使用python将文件从本地计算机传输到远程Windows服务器 - Transfer file from local machine to remote windows server using python 从 Linux 服务器到 Windows 机器的 RSYSLOG - RSYSLOG from Linux server to Windows machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM