[CentOS] scp via another server

Sun Jun 12 17:07:34 UTC 2016
H <agents at meddatainc.com>

On 06/12/2016 05:21 PM, J Martin Rushton wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> $ scp svr2:/path/to/source svr1:/path/to/dest
>
> You'll get twice the network traffic since the copy is running on your
> workstattoin (or whatever).
>
> On 12/06/16 15:40, H wrote:
>> I normally use ssh to log into a remote server, change directory
>> and then use scp from there to copy files from another remote
>> server to the first one.
>>
>> Now the first server has been hit by continuous error correction
>> messages from the ECC controller, all of which are corrected, and I
>> am unable to get a command line to issue the required commands to
>> change directory and then run scp from the other server. I have no
>> problems, however, getting into the first server - except for being
>> drowned by the error correction messages and the server seems to be
>> running "fine".
>>
>> Until I am able to get to the server and investigate, is it
>> possible to accomplish the above on a single command line, thus
>> avoiding seeing the error messages? I should add that both the
>> first and second server are set up to accept keys and not passwords
>> so at least I don't have to worry about that.
>>
>> Thank you. _______________________________________________ CentOS
>> mailing list CentOS at centos.org
>> https://lists.centos.org/mailman/listinfo/centos
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (GNU/Linux)
>
> iQIcBAEBAgAGBQJXXX3oAAoJEAF3yXsqtyBldm0P/is4q1B5MvjMdFkpLWEAXY1k
> 0r4Hcn3L+kVUgDieWZYVgkHLjrdNgTZ1WpYFEuq2UQY1TIDQAeoEIiS9P/RbpkGx
> hjR15S+A7I6n5ScGKJgGibHgQtNb/j5wociz/x3GNEXEWITyiSjVeQMuWy1YcH4q
> lUmX/ccM4/tedXhGckH6EXjkGFJyy86aXKfT35RxkXXCOjjW50PcMh+cVZub00GV
> tvhqbzAsEgAJTC7BMFvMH60KACQVRHHbQL/5GAr/MfOVZsTProzi5xOLQNmc90rM
> PdxUuuablL4BDgU3aWirjhnDBE8MUdRhFPpoKF0M1au7O764/TVGMxgy9ZVnCgr1
> c+lcF36ZC62YcG7c4LkRlfXU/lOXt7IQLeh3xOzK+wJz1ZkZcQbRMghLAYrDq9jj
> 1HlI7yuu+Yq4nsBFMzBcOr4SpvIsZVHjfonsdUI71zlKzZKlUioRgLqPruc6ryEI
> +RcFkMPjE6LpNVGrVJPUurxvplyjiZx+e3oVLa/6iKp3n4Zaw9lz5tX5piDgMKwJ
> deKFUrVuA1/cgZWWFpQshYOtUZNgVb5BraIbjvLC5MYacm1/Sx0GuGOSbI+DQHM+
> LCru1Tju37OG8sAdZzg6els0NjtyIMxG8aYTUDRUqnLP2CJ2M0Mp2s8PQdet5t7O
> hdMF2DrkXIwcjM46mlAz
> =hQ9E
> -----END PGP SIGNATURE-----
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos
This did not work even though the same user is authenticated on both servers and I have no problems ssh'ing into either of the two servers. The message is "permission denied."

Presumably some problem with being recognized on both systems?