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/centosThis 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?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/06/16 18:07, H wrote:> On 06/12/2016 05:21 PM, J Martin Rushton wrote: $ scp > svr2:/path/to/source svr1:/path/to/dest > > You'll get twice the network traffic since the copy is running on > your workstation (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 >> _______________________________________________ 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? > _______________________________________________ CentOS mailing > list CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centosIt sounds like it. Try: $ ssh svr1 pwd $ ssh svr2 pwd If they work without asking for a password then there is a deeper configuration issue. If you do get prompted for a password then you need to sort out your access. If the username differs try <user>@<host> both for the ssh test and the scp command. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJXXaneAAoJEAF3yXsqtyBl80YP/RqDYrhpcR42FtWnfHPwACoU /ogF7LMhSVEpIBwZlmSY7cSUm9uqQgHWPt/ufI3S9kLXzVpZejx1FolNNvkASTRV mtCp9g31CGDxfEzuf19ip8dVJkRDJdFpFYkjgFUHXDfm20ub7Louf89d/0Zi/7fq FUMC/RVUCu0CALlyXrr1YtuIVS9kR/8Jb459uA9L9lHXAkPXzHO0zOxu8F/WuNae uMC9DoVEMlJ9Pf4o2PV7PvHjiXTXaASAspUfBJ3uWHARhxopc6vaPhglux2QIwIf 4e/8DgH2Cnzwd1Dkv+OOEcNzVx2M/02zg9DcBXogU19dE1NPNtj/pDk5oRgRpNaF XEiS+vUV55+5XfukodkbI5LZ9RKUunWJXK+4EZWi0wEET5yVNzLoCBfX5o4Na1G4 fPJUJAAsX0MnBy/nzw0bmkItPixD7uOWOb79BS+q3HDcZUyUYokXI6OBFtF8doAw eL2+tvefC1dJWxoZez98XvvFaOQXfMCIv38A5EuOFwnkMCKFnQ4nGbJtFv+Mbzhw 9YB5qeHIFfpCJUA6s0ilS/cJvPMmH60BNCoej8PrEV02hxoqUgtcwbmM+r/JsX0X 7/Lz7IASBKbs0aGSh5HHiwfkGT40KeOY33VNULBALuHFfQxTWSymWYcXlUWY9mjj WKvNDPk0e0nU0y9kZIMn =RpfJ -----END PGP SIGNATURE-----
On 06/12/2016 08:28 PM, J Martin Rushton wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 12/06/16 18:07, H wrote: >> On 06/12/2016 05:21 PM, J Martin Rushton wrote: $ scp >> svr2:/path/to/source svr1:/path/to/dest >> >> You'll get twice the network traffic since the copy is running on >> your workstation (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 >>> _______________________________________________ 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? >> _______________________________________________ CentOS mailing >> list CentOS at centos.org >> https://lists.centos.org/mailman/listinfo/centos > It sounds like it. Try: > $ ssh svr1 pwd > $ ssh svr2 pwd > If they work without asking for a password then there is a deeper > configuration issue. If you do get prompted for a password then you > need to sort out your access. If the username differs try > <user>@<host> both for the ssh test and the scp command. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.22 (GNU/Linux) > > iQIcBAEBAgAGBQJXXaneAAoJEAF3yXsqtyBl80YP/RqDYrhpcR42FtWnfHPwACoU > /ogF7LMhSVEpIBwZlmSY7cSUm9uqQgHWPt/ufI3S9kLXzVpZejx1FolNNvkASTRV > mtCp9g31CGDxfEzuf19ip8dVJkRDJdFpFYkjgFUHXDfm20ub7Louf89d/0Zi/7fq > FUMC/RVUCu0CALlyXrr1YtuIVS9kR/8Jb459uA9L9lHXAkPXzHO0zOxu8F/WuNae > uMC9DoVEMlJ9Pf4o2PV7PvHjiXTXaASAspUfBJ3uWHARhxopc6vaPhglux2QIwIf > 4e/8DgH2Cnzwd1Dkv+OOEcNzVx2M/02zg9DcBXogU19dE1NPNtj/pDk5oRgRpNaF > XEiS+vUV55+5XfukodkbI5LZ9RKUunWJXK+4EZWi0wEET5yVNzLoCBfX5o4Na1G4 > fPJUJAAsX0MnBy/nzw0bmkItPixD7uOWOb79BS+q3HDcZUyUYokXI6OBFtF8doAw > eL2+tvefC1dJWxoZez98XvvFaOQXfMCIv38A5EuOFwnkMCKFnQ4nGbJtFv+Mbzhw > 9YB5qeHIFfpCJUA6s0ilS/cJvPMmH60BNCoej8PrEV02hxoqUgtcwbmM+r/JsX0X > 7/Lz7IASBKbs0aGSh5HHiwfkGT40KeOY33VNULBALuHFfQxTWSymWYcXlUWY9mjj > WKvNDPk0e0nU0y9kZIMn > =RpfJ > -----END PGP SIGNATURE----- > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centosI don't know. I have no problems with 'ssh user1 at server1' and 'ssh user1 at server2' or running 'scp user1 at server2:somefilesserver2 tolocationonserver1' after having ssh'ed into server 1. I just tried 'ssh user1 at server1 'scp user1 at server2:somefilesserver2 tolocationonserver1'' which worked fine suggesting that the configuration is correct. There seems to be something broken when using scp between two remote locations. Some posts on the 'net suggest using 'scp -3' to do an intermediate copy to the workstation between the two remote servers but that option does not seem to have been implemented yet on scp for Centos 6.7.
On 2016-06-12 19:07, H wrote:> 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.Try changing kernel console log level to 0, possibly: echo '0 0 0 0' > /proc/sys/kernel/printk should take effect instantly. You _might_ be able to do this remotely via ssh. Also possibly can do via magic sysrq + 0. (see: RHEL 6 Deployment Guide (rev 3.1 2011-05-19) Appendix C pp.537-538) HTH, HAND, -- Charles Polisher
On June 12, 2016 8:51:42 PM CEST, cpolish at surewest.net wrote:>On 2016-06-12 19:07, H wrote: >> 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. > >Try changing kernel console log level to 0, possibly: > > echo '0 0 0 0' > /proc/sys/kernel/printk > >should take effect instantly. You _might_ be able to do this >remotely via ssh. Also possibly can do via magic sysrq + 0. > >(see: RHEL 6 Deployment Guide (rev 3.1 2011-05-19) Appendix C >pp.537-538) > >HTH, HAND, >-- >Charles Polisher > >_______________________________________________ >CentOS mailing list >CentOS at centos.org >https://lists.centos.org/mailman/listinfo/centosTried it but did not work since I am not root...