Description of problem:
"scp userx@host1:file usery@host2:" doesn't prompt for password of
usery@host2 and fails
Version-Release number of selected component (if applicable):
A password is only read from /dev/tty, but when running scp (or ssh
command), you don't get a tty.
password = read_passphrase(prompt, 0);
One can try:
ssh -t -x userx@host1 "ssh usery@host2"
wich actually works (as it forces tty allocation), without -t you get
error, as when doing remote to remote scp.
So to scp between remote hosts, you need to:
ssh -t -x userx@host1 "scp file usery@host2"
Created attachment 99646 [details]
fix for scp
I think this fixes scp, but I did not test it yet.
Created attachment 99677 [details]
this one actually works, but I don't know if the removal of -n has any security
implications. I hope someone can comment on this.
*** This bug has been marked as a duplicate of 103364 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.