summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/clients/baseclient.go2
-rw-r--r--internal/discovery/discovery.go2
-rw-r--r--internal/server/server.go2
-rw-r--r--internal/user/server/user.go2
4 files changed, 4 insertions, 4 deletions
diff --git a/internal/clients/baseclient.go b/internal/clients/baseclient.go
index 764d53e..3025f72 100644
--- a/internal/clients/baseclient.go
+++ b/internal/clients/baseclient.go
@@ -78,7 +78,7 @@ func (c *baseClient) Start(ctx context.Context, statsCh <-chan string) (status i
// Periodically check for unknown hosts, and ask the user whether to trust them or not.
go c.hostKeyCallback.PromptAddHosts(ctx)
}
- // Print client stats every time something on statsCh is recieved.
+ // Print client stats every time something on statsCh is received.
go c.stats.Start(ctx, c.throttleCh, statsCh, c.Args.Quiet)
var wg sync.WaitGroup
diff --git a/internal/discovery/discovery.go b/internal/discovery/discovery.go
index 8bb1e85..f709501 100644
--- a/internal/discovery/discovery.go
+++ b/internal/discovery/discovery.go
@@ -24,7 +24,7 @@ const (
type Discovery struct {
// To plug in a custom server discovery module.
module string
- // To specifiy optional server discovery module options.
+ // To specify optional server discovery module options.
options string
// To either filter a server list or to secify an exact list.
server string
diff --git a/internal/server/server.go b/internal/server/server.go
index c7d7aaa..30602ff 100644
--- a/internal/server/server.go
+++ b/internal/server/server.go
@@ -200,7 +200,7 @@ func (s *Server) handleRequests(ctx context.Context, sshConn gossh.Conn,
req.Reply(true, nil)
default:
req.Reply(false, nil)
- return fmt.Errorf("Closing SSH connection as unknown request recieved|%s|%v",
+ return fmt.Errorf("Closing SSH connection as unknown request received|%s|%v",
req.Type, payload.Value)
}
}
diff --git a/internal/user/server/user.go b/internal/user/server/user.go
index 004bda4..abf74f3 100644
--- a/internal/user/server/user.go
+++ b/internal/user/server/user.go
@@ -42,7 +42,7 @@ func (u *User) String() string {
return fmt.Sprintf("%s@%s", u.Name, u.remoteAddress)
}
-// HasFilePermission is used to determine whether user is alowed to read a file.
+// HasFilePermission is used to determine whether user is allowed to read a file.
func (u *User) HasFilePermission(filePath, permissionType string) (hasPermission bool) {
dlog.Server.Debug(u, filePath, permissionType, "Checking config permissions")
if u.Name == config.ScheduleUser || u.Name == config.ContinuousUser {