Skip to content

Commit cd65ff8

Browse files
committed
s/rejected/denied
1 parent 24ad786 commit cd65ff8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The example config contains a rule allowing the client to jump to `github:22`. I
2424

2525
```
2626
$ ssh -J localhost:2222 bitbucket.org
27-
channel 0: open failed: administratively prohibited: remote connection rejected
27+
channel 0: open failed: administratively prohibited: remote connection denied
2828
stdio forwarding failed
2929
Connection closed by UNKNOWN port 65535
3030
```

pkg/sshgate/sshgate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func (s *Server) handleDirectTCPIP(ctx context.Context, logger *slog.Logger, ssh
303303
)
304304
}
305305

306-
return rejectionError{ssh.Prohibited, "remote connection rejected"}
306+
return rejectionError{ssh.Prohibited, "remote connection denied"}
307307
}
308308

309309
remoteAddr := net.JoinHostPort(destHost, strconv.Itoa(destPort))
@@ -369,7 +369,7 @@ func (s *Server) connAllowed(logger *slog.Logger, fingerprint, destHost string,
369369
}
370370
}
371371

372-
logger.Info("remote connection rejected because no rulesets permitted it")
372+
logger.Info("remote connection denied because no rulesets permitted it")
373373

374374
return false, nil
375375
}

0 commit comments

Comments
 (0)