Compare commits

..

15 Commits

Author SHA1 Message Date
Timmy Welch
fd4b933602 go get -u
Some checks failed
Push / CI (push) Has been cancelled
2025-12-27 18:23:31 -08:00
Timmy Welch
26f06a02ca Merge remote-tracking branch 'origin/main' 2025-12-27 18:19:36 -08:00
Timmy Welch
5f6a81eb54 Fix permissions
Some checks failed
Push / CI (push) Has been cancelled
2025-10-30 19:06:59 -07:00
Timmy Welch
7f96d42ce5 Wait for network
Some checks failed
Push / CI (push) Has been cancelled
2025-10-30 19:02:57 -07:00
Timmy Welch
cae3dc71a7 Merge remote-tracking branch 'origin/main' 2025-10-30 19:00:52 -07:00
Timmy Welch
01d6116f7f Fix hostkey being too short fix TERM not being set
Some checks failed
Push / CI (push) Has been cancelled
2025-10-30 01:17:10 -07:00
Timmy Welch
e452de8806 Fix check shell before executing
Some checks failed
Push / CI (push) Has been cancelled
2025-07-12 18:03:48 -07:00
Timmy Welch
88cba45310 Check shell before executing
Some checks failed
Push / CI (push) Has been cancelled
2025-07-12 16:59:32 -07:00
Timmy Welch
67b8cd2449 Enable start on boot
Some checks failed
Push / CI (push) Has been cancelled
2025-07-12 14:35:50 -07:00
Timmy Welch
01a983bea8 Use a login shell if no command is given 2025-07-12 14:34:43 -07:00
dependabot[bot]
04ed8761da Bump golang.org/x/crypto from 0.33.0 to 0.35.0 (#23)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.33.0 to 0.35.0.
- [Commits](https://github.com/golang/crypto/compare/v0.33.0...v0.35.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.35.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-12 14:33:27 -07:00
Timmy Welch
f736b48d5d testing
All checks were successful
Push / CI (push) Successful in 12m32s
2025-05-15 14:37:10 -07:00
Timmy Welch
b499ac2afe Merge remote-tracking branch 'upstream/main'
Some checks failed
Push / CI (push) Has been cancelled
2025-03-09 15:45:46 -07:00
Timmy Welch
f4af94e536 Install apps to /bin on startup 2025-03-09 15:37:52 -07:00
Timmy Welch
bba58e7a3a Stuff
Some checks failed
Push / CI (push) Has been cancelled
Implement certificate authentication, certificate requires :gokrazy: principal
Read first line of /etc/passwd for home and shell
Shell uses `-l` to make it a login shell which will run .profile
2025-02-16 17:53:26 -08:00

2
ssh.go
View File

@@ -315,12 +315,12 @@ func (s *session) request(ctx context.Context, req *ssh.Request, conn *ssh.Serve
if err != nil {
return err
}
defer srv.Close()
exitCode := uint32(0)
if err := srv.Serve(); err != nil {
log.Printf("(sftp.Server).Serve(): %v", err)
if err == io.EOF {
defer srv.Close()
log.Printf("sftp client exited session")
} else {
exitCode = 1