Files
simple-ssh-server/README.md
2023-05-07 13:05:43 +08:00

36 lines
521 B
Markdown

# simple-ssh-server
# Login with FIDO/FIDO2
OpenSSH 版本需要在 `8.2` 以上,版本查看方法如下:
```
$ ssh -V
OpenSSH_8.6p1, OpenSSL 1.1.1k 25 Mar 2021
```
生成 FIDO Key:
```
ssh-keygen -t ecdsa-sk [-C fido-u2f]
```
生成 FIDO2 Key:
```
ssh-keygen -K
```
# Usage
Edit `allowed_keys` file:
```
sk-ecdsa-sha2-nistp256@openssh.com AAAAInNrL...... fido-u2f
```
# Dependencies
* https://github.com/gliderlabs/ssh
# References
* https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.u2f