Skip to content

Commit 44e78b2

Browse files
committed
expose non auth
1 parent 3f0842a commit 44e78b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ssh/client_auth.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ func (n *noneAuth) method() string {
146146
return "none"
147147
}
148148

149+
// None return an AuthMethod using "none" authentication defined in RFC 4252 section 5.2.
150+
func None() AuthMethod {
151+
return new(noneAuth)
152+
}
153+
149154
// passwordCallback is an AuthMethod that fetches the password through
150155
// a function call, e.g. by prompting the user.
151156
type passwordCallback func() (password string, err error)

0 commit comments

Comments
 (0)