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
SSH (OpenSSH) 10 · Connecting
Allocate a terminal so programs like top and sudo work.
ssh -t [email protected] 'sudo systemctl status nginx'
Official SSH (OpenSSH) 10 documentation
Was this page helpful?