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 best with passwordless SSH
Tags: Automation, remote ssh commands, ssh, ssh commands