SSH (OpenSSH) 10 · Connecting

Run an interactive program remotely

Allocate a terminal so programs like top and sudo work.

ssh -t [email protected] 'sudo systemctl status nginx'

Official SSH (OpenSSH) 10 documentation

More connecting commands

All connecting commands · SSH (OpenSSH) 10 cheatsheet

Was this page helpful?