Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6c4e8f0

Browse filesBrowse files
committed
modified: src/SSH.swift
1 parent 16b03eb commit 6c4e8f0
Copy full SHA for 6c4e8f0

1 file changed

+2-2Lines changed: 2 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/SSH.swift‎

Copy file name to clipboardExpand all lines: src/SSH.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ public class SSH {
8888
/// - Parameters:
8989
/// - host: 远程主机地址,必填。
9090
/// - port: 远程主机端口,默认为22。
91-
/// - user: 连接用户名,必填
91+
/// - user: 连接用户名,默认为root
9292
/// - timeout: 连接超时时间,默认为15秒。
9393
/// - compress: 是否启用压缩,默认为true。
9494
/// - methods: SSH方法及其对应的字符串参数,使用字典表示,默认为空字典。
9595
/// - blocking: 是否阻塞模式,默认为true。
9696
/// - debug: 调试类型,默认为无。
9797
/// - keepalive: 是否保持心跳,默认为false。
98-
public init(host: String, port: Int32, user: String, timeout: Int = 15, compress: Bool = true, blocking: Bool = true, banner: String = "", methods: [SSHMethod: String] = [:], debug: [DebugType] = [.none], keepalive: Bool = false) {
98+
public init(host: String, port: Int32 = 22, user: String = "root", timeout: Int = 15, compress: Bool = true, blocking: Bool = true, banner: String = "", methods: [SSHMethod: String] = [:], debug: [DebugType] = [.none], keepalive: Bool = false) {
9999
self.host = host
100100
self.port = port
101101
self.user = user

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.