linux - 使用 PuTTY 向 Linux 终端发送命令

标签 linux terminal putty

如何使用 PuTTY 发送将在 Linux 终端上运行的命令(而不是打开文件)?

例如:

putty.exe 10.31.2.121 -l root -pw password | echo "Hi"

这样我就能在 Linux 控制台上看到“Hi”?

最佳答案

使用 plink.exe(来自 PuTTY 的开发者)。

然后做类似下面的事情

C:\putty\plink.exe user1@192.168.0.1 -pw P@55W0rD!

-m命令.txt

这是我从 Automate Cisco SSH connections with plink on Windows 拿来的.

关于linux - 使用 PuTTY 向 Linux 终端发送命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16275545/

相关文章:

php - 如何修复 Linux 主机中 codeigniter 中显示的 404 Page Not Found?

c - GTK3程序交叉编译到ARM(Raspberry Pi) undefined symbol 错误

android - 当我按 ctrl+space 时 Eclipse 崩溃了

java - 如何在终端中使用 .jar 文件?

python - Django 设置 DigitalOcean Postgres "DATABASES = {"错误

batch-file - 在批处理脚本中运行时隐藏腻子终端

linux - 修改pg_hba.conf文件以允许我访问

xcode - dyld:图书馆未加载。安装 XCode Beta 10 后终端出错

linux - 如何运行在我关闭 PuTTY SSH session 后仍然运行的 Linux 命令?

putty - tmux 窗口不会调整大小,并且持久 80x24 客户端