SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the LocalCommand command-line option if the PermitLocalCommand option is enabled:
LocalCommand
PermitLocalCommand
ssh username@hostname -o LocalCommand="tmux list-sessions"
For more details about the available options, see the ssh_config man page.
ssh_config