Advertisement
zamotivator

Untitled

Feb 28th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. function cross_access ()
  2. {
  3.     local host
  4.     local function from_to ()
  5.     {
  6.     for host in `host_list ${1}`; do
  7.         local key="`${SSH} ${username}@${host} "cat ~/.ssh/id_rsa.pub"`"
  8.         access $(host_list ${2})
  9.     done;
  10.     }
  11.     from_to "build" "test"
  12.     from_to "test" "build"
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement