cmdkey是一个用于显示Windows凭据pipe理器密钥的命令。
所以我在我的本地Windows中安装了Cygwin sshd服务器。 启动到Ubuntu虚拟机,并尝试SSH到我的窗户。 这工作。 当我在本地直接运行cmdkey命令时,会显示一组凭证pipe理器密钥。 但是当我从sshlogin运行相同的命令,这是一个空的输出。
我还观察到任何程序保存密钥到Windows凭据pipe理器都给我A specified logon session does not exist. It may already have been terminated A specified logon session does not exist. It may already have been terminated错误。 (只有通过ssh运行时)
尽pipe在互联网上对这个问题有一些指导。 我无法准确find根本问题。
编辑:其他信息
我写的程序最终是从win api调用CredWriteW函数。
你能帮忙吗?
披露: 我也在superuser.com上询问过这个问题 。