MCPcopy
hub / github.com/gliderlabs/ssh / generateSigner

Function generateSigner

util.go:11–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func generateSigner() (ssh.Signer, error) {
12 key, err := rsa.GenerateKey(rand.Reader, 2048)
13 if err != nil {
14 return nil, err
15 }
16 return ssh.NewSignerFromKey(key)
17}
18
19func parsePtyRequest(s []byte) (pty Pty, ok bool) {
20 term, s, ok := parseString(s)

Callers 2

ensureHostSignerMethod · 0.85
TestAddHostKeyFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestAddHostKeyFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…