Documentation ¶
Index ¶
- Constants
- func AddPublicKeys(client *ssh.Client) bool
- func AskPassword() (string, error)
- func Connect(user, server string)
- func InitSSHConnection(user, password, host, group, environment, alias string, setupDotFiles bool)
- func NewSSHClient(user, host string) (*ssh.Client, error)
- func RotateKeys(client *ssh.Client, user, privateKeyPath, publicKeyPath string) error
Constants ¶
View Source
const PORT = 22
Variables ¶
This section is empty.
Functions ¶
func AddPublicKeys ¶
func AskPassword ¶
func InitSSHConnection ¶
InitSSHConnection attempts to establish an SSH connection using multiple methods. It first tries a standard SSH connection, and if that fails, attempts using a custom dialer. Once connected, it handles key setup and optional dotfile configuration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.