Next Previous Contents

8. Issuing remote commands

8.1 ssh host.domain.tld command

This is the most fundamental way of using ssh to remotely issue commands.

SSH provides a mechanism of issuing remote commands, and redirecting the output to you. For instance, if you want to have a quick look at your uptime on a remote machine :

[dave@caprice dave]$ ssh uptime
 11:09pm  up 42 days, 22:55,  2 users,  load average: 0.00, 0.03, 0.00

Ofcourse we used keys and the agent to manage those for us, so we dont need to enter password all the time.

8.2 Smart use of remote commands

This part wil show us some examples of nicely issuing remote commands to more than 1 machine at a time [todo]

Next Previous Contents