Difference between revisions of "Execute a remote command over ssh"
From SME Server
Jump to navigationJump to search (Page init) |
m (RequestedDeletion moved page SSH:Execute a remote command over ssh to Execute a remote command over ssh: test) |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
where 'command' is the program or command to run. An example could be: | where 'command' is the program or command to run. An example could be: | ||
ssh -t root@192.168.1.5 top | ssh -t root@192.168.1.5 top | ||
+ | |||
+ | [[Category:SSH]] |
Latest revision as of 10:46, 12 January 2015
Execute or run a command over ssh to a remote server and auto disconnect
ssh -t root@ip-sme-or-remote-hostname command
where 'command' is the program or command to run. An example could be:
ssh -t root@192.168.1.5 top