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
hostHostname or ip address
portPort. The default is 22
usernameUsername
passwordPassword
knownHostFileThe 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 iOSDeclaration
Swift
public var knownHostFile: String? -
Undocumented
Declaration
Swift
public var idRsaLocation: String?
SSHOption Structure Reference