2019-05-21 10:33:50 +08:00
|
|
|
---
|
|
|
|
name: SSHFP
|
|
|
|
parameters:
|
|
|
|
- name
|
|
|
|
- algorithm
|
|
|
|
- type
|
|
|
|
- value
|
|
|
|
- modifiers...
|
2023-01-13 05:59:42 +08:00
|
|
|
parameter_types:
|
|
|
|
name: string
|
|
|
|
algorithm: 0 | 1 | 2 | 3 | 4
|
|
|
|
type: 0 | 1 | 2
|
|
|
|
value: string
|
|
|
|
"modifiers...": RecordModifier[]
|
2019-05-21 10:33:50 +08:00
|
|
|
---
|
|
|
|
|
2023-03-16 06:43:57 +08:00
|
|
|
`SSHFP` contains a fingerprint of a SSH server which can be validated before SSH clients are establishing the connection.
|
2019-05-21 10:33:50 +08:00
|
|
|
|
|
|
|
**Algorithm** (type of the key)
|
2022-11-01 06:09:43 +08:00
|
|
|
|
2019-05-21 10:33:50 +08:00
|
|
|
| ID | Algorithm |
|
|
|
|
|----|-----------|
|
|
|
|
| 0 | reserved |
|
|
|
|
| 1 | RSA |
|
|
|
|
| 2 | DSA |
|
|
|
|
| 3 | ECDSA |
|
|
|
|
| 4 | ED25519 |
|
|
|
|
|
|
|
|
**Type** (fingerprint format)
|
2022-11-01 06:09:43 +08:00
|
|
|
|
2019-05-21 10:33:50 +08:00
|
|
|
| ID | Algorithm |
|
|
|
|
|----|-----------|
|
|
|
|
| 0 | reserved |
|
|
|
|
| 1 | SHA-1 |
|
|
|
|
| 2 | SHA-256 |
|
|
|
|
|
|
|
|
`value` is the fingerprint as a string.
|
|
|
|
|
2023-03-14 04:30:21 +08:00
|
|
|
{% code title="dnsconfig.js" %}
|
2023-01-20 20:56:20 +08:00
|
|
|
```javascript
|
2023-05-25 04:09:22 +08:00
|
|
|
SSHFP("@", 1, 1, "00yourAmazingFingerprint00"),
|
2022-02-18 01:22:31 +08:00
|
|
|
```
|
2023-03-14 04:30:21 +08:00
|
|
|
{% endcode %}
|