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!

Support all Mac machines, Mac OS X (10.5.7)

Posted on Aug 5, 2011 11:27 AM

Reply
18 replies

Aug 9, 2011 11:22 AM in response to etresoft

I'm not sure what is going on now. I created a script to create all of the keys. That was easy enough to do.


Then I generated a setup on a client machine to test.

ssh-keygen -t dsa -f ~/.ssh/id_dsa - N ""


And on the same test client copied over a set of the keys I created replacing the default keys.


Still on the same client I ran this to copy the key to the server's auth keys:

cat ~/.ssh/id_dsa.pub | ssh admin@server 'cat - >> ~/.ssh/authorized_keys'

I know I can cat all of the public keys to the server from the machine I ran the batch script. I am just testing one to see if it works.


Now when I intially ssh into the server from the same client it asks to add the server to the known_hosts and I type yes. And then I have to login with the server's admin pass for the intial connection.

Then I exit.

Then I ssh in again to the server and it is still prompting for a password!?


I thought this was working yesterday, I guess not. I'm not sure what I am doing wrong now.


This seems like an awful lot of work, especially with users coming and going. I'm going to have to update the servers auth_keys daily.


Thanks,

Galen

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Best way to copy files to server via UNIX?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.