lwc:shellhub

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
lwc:shellhub [2023/10/17 16:01] John Harrisonlwc:shellhub [2024/01/01 14:07] (current) John Harrison
Line 83: Line 83:
 === Disable Password login === === Disable Password login ===
 //This is not a built-in function for community edition it appears so as a workaround we can hack the code// //This is not a built-in function for community edition it appears so as a workaround we can hack the code//
-  * in ''/pkg/agent/server/server.go'' edit ''func (s *Server) passwordHandler('' so the first line of the method reads ''return false''+  * pre v0.13.0: in ''/pkg/agent/server/server.go'' edit ''func (s *Server) passwordHandler('' so the first line of the method reads ''return false'' 
 +  * post v0.13.0: in ''/pkg/agent/server/authentication.go'' edit ''func (s *Server) passwordHandler(ctx gliderssh.Context, pass string) bool {'' so the first line of the method reads ''return false''
   * ''cd shellhub/agent''   * ''cd shellhub/agent''
   * ''go build -ldflags "-X main.AgentVersion=<VERSION>"''   * ''go build -ldflags "-X main.AgentVersion=<VERSION>"''
  • lwc/shellhub.1697576491.txt.gz
  • Last modified: 2023/10/17 16:01
  • by John Harrison