Initializer
init(host:port:username:password:debug:)
Create a complete set of SSH client connection settings.
init(host: String, port: Int = 22, username: String, password: String? = nil, debug: Bool = false)
Parameters
host-
Host name or address of the remote SSH server.
port-
TCP port used for the remote SSH server.
username-
User name to present during authentication.
password-
Password to use for password-based authentication.
debug-
Whether to emit debug logging.
Discussion
The initialiser keeps the most common SSH defaults, including port 22 and disabled password authentication unless a password is provided.