[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#222992: ssh: scp host1:file host2:. don't ask password for host2



retitle 222992 ssh: scp between two remote hosts only works with forwarded public-key auth
severity 222992 wishlist
thanks

On Fri, Dec 05, 2003 at 12:04:50PM -0300, Itamar Almeida de Carvalho wrote:
> Package: ssh
> Version: 1:3.6.1p2-10
> Severity: normal
> 
> When I try to copy a file with scp from a remote host to another remote
> host, it don't ask for password for the second one and fails
> authenticatioI.  If I copy from the first remote host to the local host 
> and then from the local to the second remote, it works well.

Yes, the syntax you used effectively sshs to host1 and then scps from
there to host2; I believe you need to be using public-key authentication
via an ssh-agent and agent forwarding to host1 in order for this to
work. Considering the compatibility limitations of scp
(http://www.openssh.org/faq.html#2.10), I doubt this will be fixed.

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]




Reply to: