PDA

View Full Version : hostkey failed: remote script rsync back to client



a_posse_ad_esse
April 27th, 2008, 03:30 AM
I am working on a project, and for it a client machine triggers a script on a server through ssh. The server script then must send back data to the client through rsync. The command that gives the hostkey failure message (below) is, as far as the client is concerned:



ssh user@IP /script rsync --options /directory user@IP:/directory


This command returns:


Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).


Is there a better way to do this? Thanks.

a_posse_ad_esse
April 30th, 2008, 04:30 AM
The answer is adding to -t flag to ssh, telling the program that you are dealing with a remote host. In this case, it allows rsync to prompt for the password.