Skip to main content

Module 10: Advanced SSH Features

Chapter 38: Run Remote Commands, X11 Forwarding, and Session Recovery

In this chapter, you'll learn how to run remote commands without a shell, execute local scripts on remote servers, use X11 forwarding, and master SSH escape sequences.

In the previous chapter, you learned how SSH ControlMaster can speed up repeated connections to the same server by reusing an existing SSH connection.

Instead of creating a new connection from scratch every time, SSH uses the already established master connection, reducing connection times from seconds to just milliseconds. That wrapped up the performance-focused topics in Module 10.

In this chapter, you'll explore several advanced SSH features that system administrators use regularly in day-to-day work.

You'll learn how to run commands on remote servers without opening an interactive shell, execute local scripts on remote machines, forward graphical applications using X11, and use SSH escape sequences to recover from unresponsive or frozen sessions.

These features are not rare or specialized tricks. They are practical tools that can save time, simplify remote administration, and help you troubleshoot problems more effectively when working with Linux servers.

Running Remote Commands Without an Interactive Shell

Updated on Jun 22, 2026