fix: 本地免密认证端口去除限制22

This commit is contained in:
TsMask
2025-02-06 14:29:55 +08:00
parent bbef0afeb0
commit 279f814674

View File

@@ -165,7 +165,6 @@ func (c *ConnSSH) NewClientSFTP() (*SSHClientSFTP, error) {
// Port: body.Port,
// }
func (c *ConnSSH) NewClientByLocalPrivate() (*ConnSSH, error) {
c.Port = 22
c.AuthMode = "1"
privateKey, err := c.CurrentUserRsaKey(false)
if err != nil {