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

36 lines
511 B
Markdown

# simple-ssh-server
# Login with FIDO
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