SSHOption

public struct SSHOption

SSH options required for SSH

  • Initialize SSHOptions

    Declaration

    Swift

    public init(host: String, port: Int = 22, username: String, password: String? = nil, knownHostFile: String? = nil, idRsaLocation: String? = nil)

    Parameters

    host

    Hostname or ip address

    port

    Port. The default is 22

    username

    Username

    password

    Password

    knownHostFile

    The known host file location. Please see knownHostFile

  • Hostname or ip address

    Declaration

    Swift

    public let host: String
  • Port. The default is 22

    Declaration

    Swift

    public var port: Int
  • Username

    Declaration

    Swift

    public var username: String
  • Password

    Declaration

    Swift

    public var password: String?
  • The location of the known host file.

    Warning

    You need to change this path on iOS

    Declaration

    Swift

    public var knownHostFile: String?
  • Undocumented

    Declaration

    Swift

    public var idRsaLocation: String?