Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f5bdaed8a |
@@ -6,8 +6,8 @@ import (
|
|||||||
"bufio"
|
"bufio"
|
||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
|
"crypto/ed25519"
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"crypto/rsa"
|
|
||||||
"crypto/x509"
|
"crypto/x509"
|
||||||
"encoding/pem"
|
"encoding/pem"
|
||||||
"flag"
|
"flag"
|
||||||
@@ -91,7 +91,7 @@ func loadHostKey(path string) (ssh.Signer, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func createHostKey(path string) (ssh.Signer, error) {
|
func createHostKey(path string) (ssh.Signer, error) {
|
||||||
key, err := rsa.GenerateKey(rand.Reader, 1024)
|
_, key, err := ed25519.GenerateKey(rand.Reader)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user