jeudi 14 mai 2015

scp did not finish successfully (1)

I am working on module which will transfer file from one server to another using ruby on rails. I am using Net::SCP for the same but getting the following error. When googled i found it should folder permissions or path issue but it isnt. I have proper permissions (write permission) on folder and both source and destination path exists.

thanks in advance

scp = Net::SCP.start(host,username, :ssh => {:password => "****"})
scp.upload!(src_file,destination_path)

Error : SCP did not finish successfully (1)

host username and password are all correct

Aucun commentaire:

Enregistrer un commentaire