putty-会话使用

D:>start /B putty.exe -load "111" python@192.168.74.129 -pw chuanzhi -m C:UsersAdministratorDesktop	mp.sh

D:>



https://the.earth.li/~sgtatham/putty/0.74/htmldoc/Chapter3.html#using-cmdline

出口
cmd.exe , 要求提升的提示:
仅会话:

regedit /e "%USERPROFILE%Desktopputty-sessions.reg" HKEY_CURRENT_USERSoftwareSimonTathamPuTTYSessions
所有设置:

regedit /e "%USERPROFILE%Desktopputty.reg" HKEY_CURRENT_USERSoftwareSimonTatham
电源外壳:
仅会话:

reg export HKCUSoftwareSimonTathamPuTTYSessions ([Environment]::GetFolderPath("Desktop") + "putty-sessions.reg")
所有设置:

reg export HKCUSoftwareSimonTatham ([Environment]::GetFolderPath("Desktop") + "putty.reg")
进口
双击*.reg文件并接受导入。

替代方式:
cmd.exe , 需要提升的命令提示符:
regedit /i putty-sessions.reg
regedit /i putty.reg
电源外壳:
reg import putty-sessions.reg
reg import putty.reg
注意 : 请勿使用您的用户名替换 SimonTatham 。

注意 :它将在当前用户的桌面上创建一个reg文件。

注意 :它不会导出相关的SSH密钥。

plink使用

C:UsersAdministratorDesktop>echo | "C:Program FilesPuTTYplink.exe" python@192.168.74.129 -pw chuanzhi ls

原文地址:https://www.cnblogs.com/jianjunliu/p/14719566.html