code_junkie

How do you use ssh in a shell script?

Nov 10th, 2011
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. ssh user@host command
  2.  
  3. ssh user@host ls
  4.  
  5. ssh host command
  6.  
  7. ssh host "command1; command2"
Add Comment
Please, Sign In to add comment