File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Citadel's `SSHClient` needs a connection to a SSH server first:
1313``` swift
1414let settings = SSHClientSettings (
1515 host : " example.com" ,
16- authenticationMethod : .passwordBased (username : " joannis" , password : " s3cr3t" ),
16+ authenticationMethod : { .passwordBased (username : " joannis" , password : " s3cr3t" ) } ,
1717 // Please use another validator if at all possible, it's insecure
1818 // But it's an easy way to try out Citadel
1919 hostKeyValidator : .acceptAnything ()
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public struct SSHClientSettings: Sendable {
5050 internal var channelHandlers : [ ChannelHandler & Sendable ] = [ ]
5151 public var connectTimeout : TimeAmount = . seconds( 30 )
5252
53- init (
53+ public init (
5454 host: String ,
5555 port: Int = 22 ,
5656 authenticationMethod: @Sendable @escaping ( ) -> SSHAuthenticationMethod ,
You can’t perform that action at this time.
0 commit comments