Best way to copy files to server via UNIX?

Hi there!
I need to write a script for my clients to copy files to a server. What is the best method to copy a lot files to a server? I want this all handled through a UNIX tunnel.
Thank you!

spraguga wrote:
Sorry about all this as I am very unfamiliar with ssh keys. I was trying to do this in the terminal maybe I should be doing it via ARD. Currently all Clients have ARD access and SSH access active in System Preferences/Sharing. Evey client machine is authenticated with the same admin account that I use with ARD.
So should I be doing the following:
Run this on every Client machines via ARD UNIX command to create the key:
ssh-keygen -t dsa -f ~/.ssh/id_dsa -N ''
And then run this on every Client machines via ARD UNIX command to update the servers authorized_key file:
cat ~/.ssh/id_dsa.pub | ssh user@host 'cat - >> ~/.ssh/authorized_keys'
Is that it, am I missing anything?
I'm not familiar with ARD so I can't comment on that part. I can tell you that there is no need to create the keys on the clients. You can create all the keys for all the clients on a single machine - your machine. Instead of naming them "id_dsa", use something like "~/Documents/client_ssh_keys/client1". Write a script to go through and build them all in one swell foop. Then you can copy them all to the server's authorized_keys file.
You will have to copy the client1 and client1.pub files into .ssh/id_dsa and .ssh/id_dsa.pub on each client machine. It would also be a good idea to update the .ssh/known_hosts file on each client machine with the entry for the server. You can get this from your own known_hosts file. As long as you are on the client, copy your own public key into authorized_keys.
At this point, you can log in to every client machine and do so in a script, without a password. Each client can log in to the server without a password and run scripts.
Also what if the machine is logged in by another Client. Then this will not work, correct? Can I set it up so anyone who is logged into any Client machine can ssh in to the server. Would I just change the id_dsa location to root or top level of the server and client startup volumes?
SSH is an independent communication channel. No one needs to be logged in on any machine.
You can use the "-i" option on SSH to use a specific set of keys for communicating with a server. Sharing keys like that would be a significant security hole. You would definitely want to use a passphrase in that case.

Similar Messages

  • Best way to access files on Xserve via VPN on iPad?

    Can anyone tell be the best solution for accessing files housed on the companies Apple Xserve remotely via VPN from an iPad? Numbers / Pages etc.
    thanks,
    Rick

    The iPad doesn't natively support file systems such as those on servers, but there are third-party apps that can allow this. FileBrowser is one often mentioned, so you might look into that. VPN will be a separate issue; iOS has a built-in VPN client which works with many VPN systems, but you'll need to see if yours is supported.
    Regards.

  • What is the best way to copy aperture library on to external hard drive? I am getting a message that say's "There was an error opening the database. The library could not be opened because the file system of the library's volume is unsupported".

    What is the best way to copy aperture library on to external hard drive? I am getting a message that say's "There was an error opening the database. The library could not be opened because the file system of the library's volume is unsupported". What does that mean? I am trying to drag libraries (with metadata) to external HD...wondering what the best way to do that is?

    Kirby Krieger wrote:
    Hi Shane.  Not much in the way of thoughts - - but fwiw:
    How is the drive attached?
    Can you open large files on the drive with other programs?
    Are you running any drive compression or acceleration programs (some drives arrive with these installed)?
    Can you reformat the drive and try again?
    Hi Kirby,
    I attached the UltraMax Plus with a USB cable. The UltraMax powers the cable so power is not an issue. I can open other files. Also, there is 500GB of files on the drive so I cannot re-format it. Although, I noted I could import the entire Aperture Library. However, I do not want to create a duplicate on my machine because that would be defeating the purpose of the external drive.
    Thanks,
    Shane

  • [vmware] Best way to share files between host and client

    Good afternoon!
    I have successfully installed VMware server on my machine and set up a virtual machine, powering Windows XP for study issues (emulation via wine does not do the trick for me). The virtual machine runs fast and stable but does not meet my requirements unless I have two issues faced:
    First:
    How to access a USB pendrive monunted by the host system properly within the client?
    Second:
    What is the best way to share file system space between host and client? Should I set up a Samba share which is accessible for both host and client or is it save to grant my VM access to my physical hard disc as a whole (using it as a partition)?
    Thanks for answers in advance, I have still quite a lot to learn, when it comes to VMs.
    Regards,
    ~cg

    Do not setup your VMware to be able to access your physical disk as a whole. This would have you mounting the filesystem twice, corrupting it in the process.
    You /can/ setup VMware with Sharing Folders that lets you share your filesystem (either / or just /home or something else) and that is what I would recommend.
    As for accessing the pen drive from both operating systems at once, I'd say use the same Sharing Folders method. I always share /mnt so that I can access my cdrom/USB/etc from the vmware OS.
    The sharing folders is basically the same as a samba share, but uses vmware's own method (HGFS). Samba is more secure (if you are worried about your VMware OS breaking from it's shell and attacking your real filesystem, which is unlikely). You need the vmware tools installed to make use of it.

  • What is the best way to copy data....

    Hello friends,
    What could you think is the best way to copy this data ? :
    - I have two identical databases (Oracle 9i)
    - I want to migrate the data of 90 tables (all tables begin with the same string, i.e. 'TAB') from Database1 to database2.
    - There are integrity constraints, referentials, etc.
    I'd like to generate a script to automate/accelerate the process.
    So, I'm thinking on the following:
    - Disable all the constraints in Database2.
    - Connect to Database 1 and generate a script with the 'inserts' using TOAD (or another similar application)
    - In a Database 2 session, execute the script...
    Of course if I use TOAD I can't generate an unique script to do this process in one step so...
    Any better idea? (Using export/import, ... or some script you have...)
    Thanks.
    Jose.

    Use exp and imp. It works... seriously! And you don't need to drop the user/schema. But don't take my word, run an example...
    On Database 1
    First let's create a couple of tables with referential integrity to each other to make sure exp/imp can handle it...
    SQL> create table t1 (t1_id number constraint pk_t1 primary key, t2_id number);
    Table created.
    SQL> create table t2 (t2_id number constraint pk_t2 primary key, t1_id number);
    Table created.
    SQL> alter table t1 add constraint fk_t1_t2 foreign key (t2_id) references t2 (t2_id);
    Table altered.
    SQL> alter table t2 add constraint fk_t2_t1 foreign key (t1_id) references t1 (t1_id);
    Table altered.
    SQL> insert into t1 (t1_id, t2_id) values (1, null);
    1 row created.
    SQL> insert into t2 (t2_id, t1_id) values (2, 1);
    1 row created.
    SQL> update t1 set t2_id = 2 where t2_id is null;
    1 row updated.
    SQL> commit;
    Commit complete.
    SQL> select * from t1;
         T1_ID      T2_ID
             1          2
    SQL> select * from t2;
         T2_ID      T1_ID
             2          1
    SQL> select table_name, constraint_name, constraint_type, r_constraint_name from user_constraints
      2  where table_name in ('T1','T2');
    TABLE_NAME                     CONSTRAINT_NAME                C R_CONSTRAINT_NAME
    T1                             PK_T1                          P
    T1                             FK_T1_T2                       R PK_T2
    T2                             PK_T2                          P
    T2                             FK_T2_T1                       R PK_T1
    SQL>
    Now let's export those tables. You can build a parfile manually or even spool it from a sql script with the names of all tables you need to export...
    $ cat parfile.txt
    tables=(\
    t1,\
    t2
    $ exp rc/pwd parfile=parfile.txt file=db1.dmp log=db1.log
    Export: Release 10.1.0.3.0 - Production on Mon Jan 9 20:49:17 2006
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in UTF8 character set and UTF8 NCHAR character set
    About to export specified tables via Conventional Path ...
    . . exporting table                             T1          1 rows exported
    . . exporting table                             T2          1 rows exported
    Export terminated successfully without warnings.
    On Database 2
    Copy your .dmp file to Database 2
    Import
    $ imp rc/pwd full=y file=db1.dmp log=db1_imp.log
    Import: Release 10.1.0.3.0 - Production on Mon Jan 9 20:51:15 2006
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export file created by EXPORT:V10.01.00 via conventional path
    import done in UTF8 character set and UTF8 NCHAR character set
    . importing RC's objects into RC
    . . importing table                           "T1"          1 rows imported
    . . importing table                           "T2"          1 rows imported
    About to enable constraints...
    Import terminated successfully without warnings.
    All data is there...
    SQL> select * from t1;
         T1_ID      T2_ID
             1          2
    SQL> select * from t2;
         T2_ID      T1_ID
             2          1 All constraints are there...
    SQL> select table_name, constraint_name, constraint_type, r_constraint_name from user_constraints
      2  where table_name in ('T1','T2');
    TABLE_NAME                     CONSTRAINT_NAME                C R_CONSTRAINT_NAME
    T1                             PK_T1                          P
    T1                             FK_T1_T2                       R PK_T2
    T2                             PK_T2                          P
    T2                             FK_T2_T1                       R PK_T1It does work!

  • I'm buying a new Macbook Pro this week and am wondering what is the best way to copy over the software I have from my existing Macbook Pro to the new one? eg. Photoshop and Office etc. I no longer have the CDs.

    I'm buying a new Macbook Pro this week and am wondering what is the best way to copy over the software I have from my existing Macbook Pro to the new one? eg. Photoshop and Office etc. I no longer have the CDs.

    Ya know what I'm on a brand new MBP just about 24 hours old and you know whats been working amazingly for me. I have a 27inch iMac as well and i've just connected it to my network and been dragging files and apps across the network onto my new MBP. Its really working fast and its flawless. You could always do that option, Just go into sharing options and turn them on for both Macs. Then just click and drag. Of course they have to both be on the same network for this to be possible.
    Look at my network.
    Shared is what your looking at.  I click on there see all my computers files and then drag the ones i want form its folder to my MBP folders.  Hope that helps if your looking for a very simple way on a wireless network.

  • Best way to copy range of paragraphs

    I'm getting all the changebars in the files of a book, and copying them out into a separate, single change document. Once I find the Pgf with the changebar, what would be the best way to copy the info out to the change doc? I want to copy the entire section that contains the changebar.
    I figured I would move backwards and find the most recent section heading and set the beginning of a TextRange there at the beginning of that Pgf. Then I move forward and find the following heading pagagraph, and move back one pgf from that and set that as the end of the range.
    At that point should I use copy and paste into the new document?
    Thanks, Mark

    Hi Mark,
    Glad you are making progress. About the Pgfs in tables: yes, they are in a world of their own. Each table is a more or less closed object anchored to a paragraph in the document. You can step through all Pgfs in a document (including the ones in your text flows as well as the ones in table cells) using one single linked list, but that list does not care about the order in which the paragraphs appear in your document, and also includes paragraphs on your master and reference pages. This is not what you want to have.
    You mentioned you wanted to copy not just the paragraph with changebars but the section that contains at least one paragraph with changebars. One strategy is finding a paragraph with changebars and then tracking back to the previous heading and forward to the next heading, so that you can determine which section to copy to your changes document. With the requirement of checking paragraphs in tables added into the equation, this becomes a complex matter. Even if you know that a paragraph in a table cell has a changebar set, you should track back to the table anchor, then to the paragraph in which the anchor is located, and then back to the section that you need to copy. And if the section also contains a paragraph with changebars outside a table, you do not want to copy it again.
    This might require a completely different approach to the problem. Build an array with paragraph identifiers of all headings in your document, and create an array of booleans all set to false that has the same number of entries. Then find all paragraphs with changebars and, for each found paragraph, walk back to the nearest heading, find the heading identifier in the headings array and set the corresponding entry in the boolean array to true. Then do the same thing with paragraphs with changebars in tables. In this case, you track the paragraph in the table back to its table anchor, then to the paragraph containing the table anchor and from there walk back to the nearest heading.
    In the end you will have an array of heading paragraph identifiers and a matching array of booleans telling you which sections to copy to the changes document. Doing the copying is dead easy, as you already have the start and end paragraph identifier for each section. Just create a TextLoc pointing at the first heading Pgf with offset 0 and a TextLoc pointing at the next heading Pgf with offset 0 and copy this range.
    I hope this makes sense to you. If things get too complicated, throw me an email (you will find my mail address in my profile) with a sample file and I will have a look at it. If I think it will take me more than a couple of hours to write, I will make you a decent offer.
    Kind regards
    Jang

  • Whats the best way of sending files ?

    whats the best way of sending files (mp3's) to another computer over the internet, been doing it over msn, but takes a while, is there any other way?

    Have you thought of using an intermediary file server, e.g. yousendit.com, rapidshare.de, etc? Alternatively, you could do it the computer-to-computer route by enabling either 'Remote Login' or 'FTP Access' (Sharing preference pane) on one and connecting with the other.
    As an aside, what you're doing isn't illegal, is it? Pardon my bluntness.
    Yang

  • Best way to keep files on iMac and Powerbook in Sync

    Best way to keep files on IMac and Macbook Pro in Sync

    Hi ...
    Using the Migration Assistant would be tedious and time consuming.
    You can setup an iCloud account and sync your Macs since you have Lion installed on both. If you have iCloud enabled, if for example you add a bookmark in Safari, that bookmark will sync via your Wi-Fi network to the other Mac automatically.
    Read here > Apple - iCloud - Learn how to set up iCloud on all your devices

  • Best way to move files to external drive in LR 5. Drag and drop or export, if drag and drop

    Best way to move files to external drive in LR 5. Drag and drop or export, if drag and drop can I put all the dated folders into one single folder

    Drag and drop should do the job. Or move the files (or folders) in your operating system and then re-link via http://www.computer-darkroom.com/lr2_find_folder/find-folder.htm
    Yes, you can put all the dated folders into a single folder (but if you plan to do this, then don't try move the files using your operating system and re-link)
    Export most definitely isn't the solution.

  • Best Way to copy audio books

    Hi
    What is the best way to copy Audio Books. I just bought all the Harry potter on CD's. I have a 30g 5th gen IPOD had it for 2 month. Upgraded ipod to 1.2 and iTunes 7.0.1.
    Everything is running fine.
    Thanks,
      Windows XP Pro  

    Hello again,
      I went and checked PDF document properties. The document was created by an application called (3B2 Total Publishing). It's the application that the printing press used to creat the PDF file. Unfortunately I don't have the source document and the printing press claim they don't have any source files but used in-house applicatin to create the PDF book.
    I checked fonts used in the PDF file and I found 17 fonts named T1 to T17 and all (Type 3) fonts. I'm seasoned IT engineer but no experience in publishing. So, no idea whether or not this information is usefull to find a way to publish these books in epub.
    Cheers,
    Abdul

  • Best way to transfer files from old Macbook Pro to new one?

    I just got a new Macbook Pro from Apple...YEEEEAAAHHHH! 
    So....
    What's the best way to transfer files from old Macbook Pro to new one?  I know Migration assistant, but is there a recommended way?  I don't want to put do a system restore or transfer everything from the old laptop, but I do want to move important things like photos, music, documents and such over.  Any suggestions on best way to do this?
    Another question, perhaps subquestion.  If I have, say, an older version of iPhoto but a newer version of one on my new Macbook Pro, will it still transfer photos no problem?
    Just looking for hints from the experts so this puppy is set up in the best way possible.

    Just one comment on this:
    ‘If I have, say, an older version of iPhoto but a newer version of one on my new Macbook Pro, will it still transfer photos no problem?’
    the problems are ALWAYS in the reverse way, when you have the newest (or a newer) version of a given app, and wish to transfer its library to an older version.
    Otherwise, see the link to Pondini.
    I have been using Martin Jahn’s iBackup, with which I have become accustomed and works fine. It also makes daily backups. Its advantage over other apps is that you may add whatever you wish to save, beside its default settings (which you may delete or cancel, of course, even if not recommended); it also has a friendly interface and easily customizable. Of course, this is a personal view, you may try other methods as well, or other backup apps. All are good if you are satisfied and correspond to your needs.

  • What is the best way to transfer files from a Power PC G4 that has NO power?  Thanks.

    What is the best way to transfer files from a Power PC G4 that has NO power?   I have a newer iMac. Thanks.

    Remove the hard drive and get one of these USB hard drive adapters. http://tinyurl.com/a5l2htj Then plug the adapter into your iMac to see/retrieve the files.
     Cheers, Tom

  • What is the best way to copy a DVD i made from iMovie?  It was HD720 and I don't want to lose any quality in the copies.

    What is the best way to copy a DVD I made from iMovie?  It was HD720 and I don't want to lose any quality in the copies.  I need to distribute it to about 20 people. It's 42 minutes long.

    You will need to save it as a video to the camera roll.
    Import it into windows as you would a photo.
    Then purchase DVD authoring software, and create a DVD.

  • What is the best way to copy 700 local folders full of email to a new computer?

    I am moving my wife from and old computer (Thunderbird, Win XP) to a new one (Thunderbird Win 7). She has about 700 local folders with thousands of email messages in them. What is the best way to copy them to the new computer?

    The easiest way is just copy the whole profile.
    Help menu > troubleshooting information
    Close Thunderbird
    In windows explorer select all and copy.
    paste everything onto a thumb or other read/write portable media (not CD or DVD)
    on the new Machine repeat the troubleshooting and close steps to get the current profile folder
    This time paste everything from the portable media into the profile replacing what is there
    Open Thunderbird, your done mail contacts add-ons everything

Maybe you are looking for