View Single Post

  #2 (permalink)  
Old 01-30-2008, 02:16 PM
nixcraft's Avatar
nixcraft nixcraft is offline
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,060
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

1) Generate public / private keys to do passwordless login
Howto Linux / UNIX setup SSH with DSA public key authentication (password less login)

2) Write script as follows
Code:
#!/bin/bash
scp user@server1:/path/to/file /path/to/local 
scp user@server2:/path/to/file /path/to/local 
scp user@server3:/path/to/file /path/to/local
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote