Find the answer to your Linux question:
Results 1 to 2 of 2
Hello On network I have 5 linux machine ( sys1, sys2, sys3, sys4, sys5). now at some time I want to copy report file , which already exists on every ...
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    7

    Automated sftp or scp script

    Hello
    On network I have 5 linux machine ( sys1, sys2, sys3, sys4, sys5).
    now at some time I want to copy report file , which already exists on every machine , to one perticular machine.
    e.g.
    I want to copy report file from sys1 , sys2 ,sys3 and sys4 to sys5
    source:sys1,sys2,sys3,sys4
    Destination:sys5

    For this I required an automated script , which provides password .

    Can anyone give me such script which initiates scp or sftp session ,proveds password to them and copies report file from source to destnation ?

    waiting for your reply..

    sac

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    For this I required an automated script , which provides password
    Probably better to use pubkey authentication instead. One howto (of many) here: http://wiki.suselinuxsupport.de/wikk...Authentication

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...