gitea: Index | Files

package ssh

import ""


Package Files

ssh.go ssh_graceful.go

func GenKeyPair Uses

func GenKeyPair(keyPath string) error

GenKeyPair make a pair of public and private keys for SSH access. Public key is encoded in the format for inclusion in an OpenSSH authorized_keys file. Private Key generated is PEM encoded

func Listen Uses

func Listen(host string, port int, ciphers []string, keyExchanges []string, macs []string)

Listen starts a SSH server listens on given port.

func Unused Uses

func Unused()

Unused informs our cleanup routine that we will not be using a ssh port

Package ssh imports 20 packages (graph) and is imported by 28 packages. Updated 2021-01-22. Refresh now. Tools for package owners.