Pty to find its own shell

This commit is contained in:
Owen
2026-05-21 18:23:11 -07:00
parent e0d65d8125
commit 133311f1c4
2 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ func serveNativeSSHSession(ctx context.Context, ws *websocket.Conn, cfg NativeSS
log.Printf("SSH native: spawning shell")
sess, err := nativessh.NewPTYSession(cfg.Shell)
sess, err := nativessh.NewPTYSession()
if err != nil {
sendSSHError(ctx, ws, fmt.Sprintf("Failed to spawn shell: %v", err))
return fmt.Errorf("pty session: %w", err)