Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, Newbie here. I wold like to copy one file to all directories on a server using ssh. Could you help with this please. Thanks...
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    2

    copy command question ?

    Hi,

    Newbie here.

    I wold like to copy one file to all directories on a server using ssh.

    Could you help with this please.

    Thanks

  2. #2
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    I would use rsync, scp, or sftp.
    Flies of a particular kind, i.e. time-flies, are fond of an arrow.

    Registered Linux User #408794

  3. #3
    Just Joined!
    Join Date
    Oct 2006
    Posts
    2
    Thanks for the quick respond but I'm looking for command line parameters which should automate this process.
    There are many directories on this server.

    P.S.

    This file is located on the server.

    Thanks

  4. #4
    Just Joined!
    Join Date
    Oct 2006
    Posts
    4
    Quote Originally Posted by darik
    Hi,

    Newbie here.

    I wold like to copy one file to all directories on a server using ssh.

    Could you help with this please.

    Thanks

    $scp user@machine1.com:/your_file user@anothermachine.com

    you can automate password-verification process by exchanging ssh public-keys (see authorized_keys in man pages)


    --
    Vladimir
    http://unix-news.blogspot.com

Posting Permissions

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