修复了ssh私钥登录失败的问题
This commit is contained in:
@ -58,7 +58,6 @@ func AssetUpdateEndpoint(c echo.Context) error {
|
||||
item.PrivateKey = "-"
|
||||
item.Passphrase = "-"
|
||||
case "private-key":
|
||||
item.Username = "-"
|
||||
item.Password = "-"
|
||||
item.CredentialId = "-"
|
||||
case "custom":
|
||||
|
@ -91,6 +91,7 @@ func TunEndpoint(c echo.Context) error {
|
||||
break
|
||||
case "ssh":
|
||||
if len(session.PrivateKey) > 0 && session.PrivateKey != "-" {
|
||||
configuration.SetParameter("username", session.Username)
|
||||
configuration.SetParameter("private-key", session.PrivateKey)
|
||||
configuration.SetParameter("passphrase", session.Passphrase)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user