每次 Windows 服务器启动时,我都需要向 Putty Agent (pagent.exe) 添加一个私有 SSH 密钥——在用户交互登录之前。密钥将由服务使用。
如果是普通用户需要使用密钥,我只会在启动文件夹中放置一个快捷方式,但是,这在服务器上不起作用,因为没有用户登录。
我在 Windows Server 2008 和 Windows Server 2003 上都需要这个。
我认为这一定是一个非常常见的用例,因为使用 SSH 和 SFTP 进行公钥身份验证变得更加普遍。
windows-server-2003 windows-server-2008 windows-service putty ssh-agent