From 332fd00cbd340d41e757aa29b369ad249b7f6980 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 3 Jul 2025 11:32:47 -0400 Subject: [PATCH] fix(ssh): keep using EmulatedPty for now --- pkg/ssh/ssh.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkg/ssh/ssh.go b/pkg/ssh/ssh.go index bd6dd2cf0cee82618c1d8421ce8e0037f42b0a8f..10d5edee632048c98e83fdfb9609c0426e57f2a0 100644 --- a/pkg/ssh/ssh.go +++ b/pkg/ssh/ssh.go @@ -5,7 +5,6 @@ import ( "fmt" "net" "os" - "runtime" "strconv" "time" @@ -92,11 +91,10 @@ func NewSSHServer(ctx context.Context) (*SSHServer, error) { wish.WithHostKeyPath(cfg.SSH.KeyPath), wish.WithMiddleware(mw...), } - if runtime.GOOS == "windows" { - opts = append(opts, ssh.EmulatePty()) - } else { - opts = append(opts, ssh.AllocatePty()) - } + + // TODO: Support a real PTY in future version. + opts = append(opts, ssh.EmulatePty()) + s.srv, err = wish.NewServer(opts...) if err != nil { return nil, err