Cha*_*ang 5 windows ssh services putty ssh-tunnel
在 Windows XP 或更高版本中,我可能会运行 shell 命令
putty.exe -load ssh_tunnel
Run Code Online (Sandbox Code Playgroud)
启动配置为 ssh 隧道的 ssh 会话。
我想在我的计算机启动时 ssh 隧道会话变得可用,而无需登录任何用户会话。
将 shell 命令保留在 Windows 服务中似乎是唯一的解决方案。我尝试创建一个服务:
c:\> sc create ssh_tunnel binpath="c:\putty.exe -load ssh_tunnel
[SC] CreateService SUCCESS
Run Code Online (Sandbox Code Playgroud)
服务创建成功。当我启动服务时:
C:\>sc start ssh_tunnel
[SC] StartService FAILED 1053:
The service did not respond to the start or control request in a timely fashion.
Run Code Online (Sandbox Code Playgroud)
它没有开始。
| 归档时间: |
|
| 查看次数: |
9150 次 |
| 最近记录: |