scp host1:file1 host2:file2 -> Permission denied??????

Ben Lindstrom mouring at etoh.eviladmin.org
Thu May 27 23:37:01 EST 2004


scp host1:file host2:file is like saying:

ssh host1 "scp file host2:file"

As a result the method of authentication between host1 and host2 MUST NOT
require a tty.  You can use public key with ssh-agent, but you can't be
prompted for a password or any interactive authentication.

- Ben

 On Thu, 27 May 2004, Daniel Tourde wrote:

> Hello,
>
>
> I have a stupid problem with scp and I can't find where it comes from. I
> am running 3 machines here with RedHat 7.3, RedHat 8 and RedHat 9. The 3
> of them have openssh-3.7.1p2 (built from the SRPMS found on the openssh
> web site).
>
> I have though a problem to run a command of the type 'scp host1:file1
> host2:file2' (my ssh being correctly setup):
>
> [ted at papeete ~]$ scp papeete.foi.se:~/nils_holgersson_airline.jpg
> cherbourg.foi.se:~
> Permission denied, please try again.
> Permission denied, please try again.
> Permission denied (publickey,password,keyboard-interactive).
> lost connection
>
> when the following works perfectly...
>
> [ted at papeete ~]$ scp ~/nils_holgersson_airline.jpg cherbourg.foi.se:~
> nils_holgersson_airline.jpg
>    100% 4813     0.0KB/s   00:00
>
>
> the following works flawlessly as well:
> [ted at papeete ~]$ ssh papeete.foi.se
> [ted at papeete ~]$
>
> [ted at papeete ~]$ ssh papeete
> [ted at papeete ~]$
>
> [ted at papeete ~]$ ssh cherbourg.foi.se
> [ted at cherbourg ~]$
>
> [ted at papeete ~]$ ssh cherbourg
> [ted at cherbourg ~]$
>
>
> The /etc/ssh/ssh_config and /etc/ssh/sshd_config have not been modified.
> They are exactly the ones obtained from the compilation of the SRPMS.
> So, I am clueless about the reason of this stupid problem. Needless to
> say that for an application using 'scp' heavily I need a working 'scp
> host1:file1 host2:file2'
>
> Has anyone any idea?
>
>
>
> 		Daniel Tourde
>
>
> --
> ***********************************************************************
> Daniel TOURDE                             E-mail : daniel.tourde at foi.se
>                                               Tel : +46 (0)8-55 50 43 44
>                                          Cellular :  +46 (0)70-849 93 40
>     FOI, Swedish Defence Research Agency; Aeronautics Division - FFA
>         Dept. of Wind Energy and Aviation Environmental Research
> SE-172 90 Stockholm, Sweden                     Fax : +46 (0)8-25 34 81
> ***********************************************************************
>
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
>




More information about the openssh-unix-dev mailing list