How to send SSH commands to remote host, ssh Automation

Eric P
2017-10-15 03:58

 

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 best with passwordless SSH

 

 

 

Tags: Automation, remote ssh commands, ssh, ssh commands
Average rating: 0 (0 Votes)

You cannot comment on this entry