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