Ssh remote command

From thelinuxwiki
Jump to: navigation, search

run command remotely, output local std out

# ssh -l username <remote hostname|IP> command1; command2

example:

# ssh -l username 192.168.1.1 hostname; df -k