Ssh remote command

From thelinuxwiki
Revision as of 18:19, 17 May 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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