复制代码 代码如下:
@echo off
echo ===============================
echo Production server
echo ===============================
echo please input "y" to continue......
set /p input=
if "%input%"=="y" (
"putty.exe" -pw serverPassword -m script.txt username@IP
echo reboot server command executed.
) else echo Does not execute any command
pause
您可能感兴趣的文章:- putty实现自动登录的方法(ssh和ssh2)
- 使用Putty远程(SSH)管理Linux VPS的图文教程
- PuTTY登录设置的批量备份导出/导入