trzsz / trzsz-ssh

trzsz-ssh ( tssh ) is an ssh client designed as a drop-in replacement for the openssh client. It aims to provide complete compatibility with openssh, mirroring all its features, while also offering additional useful features. Such as login prompt, batch login, remember password, automated interaction, trzsz, zmodem(rz/sz), udp mode like mosh, etc.
https://trzsz.github.io/ssh
MIT License
1.74k stars 102 forks source link

[功能请求] 支持fido2的ssh密钥 #89

Open ztmzzz opened 8 months ago

ztmzzz commented 8 months ago

对于ed25519_sk这样的fido2 ssh密钥,目前程序无法支持

Warning: parse private key [/home/xxx/.ssh/id_ed25519_sk] failed: ssh: unhandled key type

类似于https://github.com/masahide/OmniSSHAgent/issues/37#issuecomment-1666398322

临时解决方案:ssh-add

lonnywong commented 8 months ago

好像你给出的这个链接也还没支持?我暂时还不知怎么实现。

ztmzzz commented 8 months ago

我想应该要看看fido2的具体实现情况,目前也就openssh做了这个功能。这个issue主要还是给个简单的解决方案给人查询。

ztmzzz commented 7 months ago

我已经实现了fido2 ssh密钥的功能,但是需要修改go-libfido2库,不知作者是否愿意加入。示例

lonnywong commented 7 months ago

等我抽出时间了,再研究一下。暂时可以先用 ssh-add 顶着,或者试试 ControlMasterControlPath,这样 tssh 会调起 openssh 来登录,然后复用 openssh 登录的连接。