Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cross_access ()
- {
- local host
- local function from_to ()
- {
- for host in `host_list ${1}`; do
- local key="`${SSH} ${username}@${host} "cat ~/.ssh/id_rsa.pub"`"
- access $(host_list ${2})
- done;
- }
- from_to "build" "test"
- from_to "test" "build"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement