8000 Add macOS Kerberos (GSSAPI) SSH authentication by ruofengOvO · Pull Request #554 · t8y2/motty · GitHub
[go: up one dir, main page]

Skip to content

Add macOS Kerberos (GSSAPI) SSH authentication - #554

Open
ruofengOvO wants to merge 2 commits into
t8y2:mainfrom
ruofengOvO:codex/macos-kerberos-pr
Open

ruofengOvO wants to merge 2 commits into
t8y2:mainfrom
ruofengOvO:codex/macos-kerberos-pr

Conversation

@ruofengOvO
@ruofengOvO ruofengOvO commented Nov 6, 2026 •
Copy link
Copy Markdown

Summary

Some SSH servers offer only gssapi-with-mic. Add an opt-in Kerberos (GSSAPI) authentication choice for SSH hosts on macOS so Motty can use the existing system Kerberos credentials for those connections.

The implementation uses Apple's GSS framework with the existing Go SSH client. It keeps host-key verification in the shared SSH handshake and leaves credential delegation disabled. The default authentication order stays the same.

The second commit applies gofmt to an existing indentation issue on main so the repository-wide format check passes.

Validation

  • Manually connected to a GSSAPI-only OpenSSH server from the macOS arm64 development build and opened a remote shell. The file panel listed remote directories with the transfer protocol explicitly set to SFTP.
  • Passed the repository-wide formatting check and go vet ./....
  • The first go test ./... -count=1 run reported a stalled-upload cancellation timeout and a terminal drawing allocation assertion. Both packages passed on isolated reruns, and the two individual tests passed three consecutive reruns each.
  • Passed the full go test -race ./... -count=1 run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0