MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / normalizeSSHDirectiveValue

Function normalizeSSHDirectiveValue

agent/app/service/ssh.go:978–983  ·  view source on GitHub ↗
(key, value string)

Source from the content-addressed store, hash-verified

976}
977
978func normalizeSSHDirectiveValue(key, value string) string {
979 if strings.EqualFold(key, "PermitRootLogin") && value == "prohibit-password" {
980 return "without-password"
981 }
982 return value
983}
984
985func loadFirstSSHDirectiveValue(directives []sshDirective, key string) (string, bool) {
986 for _, item := range directives {

Callers 1

parseSSHConfigFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected