MCPcopy Create free account
hub / github.com/Driver-C/tryssh / String

Method String

pkg/config/config.go:66–71  ·  view source on GitHub ↗

String returns a safe string representation with the password masked.

()

Source from the content-addressed store, hash-verified

64
65// String returns a safe string representation with the password masked.
66func (s ServerListConfig) String() string {
67 pwd := utils.MaskSecret(s.Password)
68 key := utils.MaskSecret(s.Key)
69 return fmt.Sprintf("%s@%s:%s (pwd:%s key:%s alias:%s)",
70 s.User, s.IP, s.Port, pwd, key, s.Alias)
71}

Calls 1

MaskSecretFunction · 0.92