6 users online | 6 Guests and 0 Registered

How to send SSH commands to remote host, ssh Automation


This is very useful for automating tasks in remote machines or to gather remote info from many machines at once.

 

ssh root@192.168.1.48 'uptime'

For multiple commands

ssh root@192.168.1.48 'uptime ; df -h'

 

Works well with passwordless SSH

 

 

 

Tags: remote ssh commands, ssh Automation, ssh commands
Last update:
2013-12-31 08:11
Author:
Eric Pezoa
Revision:
1.6
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Records in this category

Tags

Sticky FAQs