Skip to contentSkip to conversation

Duplicate usernames on password less scp

DISCUSSION Bobby 2 participants 2 messages Sep 11, 2010

lore
Share & tools
lore

Bobby

author
#0 lore raw

Hi,

I have a situation where I have the same username on more than one computer and they all need to run a password less rsync over ssh to the same destination server, and keep separate copies from each computer.

The destination machine has the pub key from each computer in the authorized_keys file. Each computer has a standard /home/user set up.

The idea is that the destination server keeps copies from each computer under the respective /home directory.

How do I accomplish this?

Maybe with a /home/machine name instead of using the (duplicate) username? If so what changes do I make for this to work?

All I could find under google was the normal single username set up.

Signature · 1 line
Bobby
#1 lore raw

2010/9/12 Bobby <[email protected]>:

Quoted 11 lines

I have a situation where I have the same username on more than one computer and they all need to run a password less rsync over ssh to the same destination server, and keep separate copies from each computer.

The destination machine has the pub key from each computer in the authorized_keys file. Each computer has a standard /home/user set up.

The idea is that the destination server keeps copies from each computer under the respective /home directory.

How do I accomplish this?

Just set the rsync commands on the computers to sync their data into a different subdirectory of the home directory on the server.