Author Topic: More SSH Tricks  (Read 598 times)

Offline scotbuff

  • Sys Admin
  • UNIX User
  • *****
  • Posts: 174
  • Karma: +2/-0
    • View Profile
    • Scott.Buffington.me
More SSH Tricks
« on: January 12, 2007, 10:12:17 pm »
Comparing files on two different machines.

Code: [Select]
cooper:~ scotbuff$ diff <(ssh -n gremlin cat /etc/passwd) <(ssh -n dungeonrat cat /etc/passwd)
Ever wrote a script on a particular machine and wanted to run it elsewhere without having to copy it out?  SSH is the answer...

Code: [Select]
cooper:~ scotbuff$ cat buffsched.sh | ssh dungeonrat /bin/sh