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.
-----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@centos.org https://lists.centos.org/mailman/listinfo/centos
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@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@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?
-----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@centos.org https://lists.centos.org/mailman/listinfo/centos
_______________________________________________ CentOS mailing list CentOS@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@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.
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@centos.org https://lists.centos.org/mailman/listinfo/centos
_______________________________________________ CentOS mailing list CentOS@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@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@centos.org https://lists.centos.org/mailman/listinfo/centos
I don't know. I have no problems with 'ssh user1@server1' and 'ssh user1@server2' or running 'scp user1@server2:somefilesserver2 tolocationonserver1' after having ssh'ed into server 1.
I just tried 'ssh user1@server1 'scp user1@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 Sun, 2016-06-12 at 20:43 +0200, H wrote:
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.
The current version of C6 is now C6.8 :-)
On June 12, 2016 4:05:59 PM EDT, Always Learning centos@u68.u22.net wrote:
On Sun, 2016-06-12 at 20:43 +0200, H wrote:
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.
The current version of C6 is now C6.8 :-)
-- Regards,
Paul. England, EU. England's place is in the European Union.
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
You're right, that's indeed what I am running.
On Jun 12, 2016, at 2:43 PM, H agents@meddatainc.com wrote:
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.
Ah, ignore my earlier comment then. ‘scp -3’ is not available in the OpenSSH in CentOS6. It appears to have been introduced in OpenSSH 5.7, and CentOS6 uses 5.3.
-- Jonathan Billings billings@negate.org
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,
On June 12, 2016 8:51:42 PM CEST, cpolish@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@centos.org https://lists.centos.org/mailman/listinfo/centos
Tried it but did not work since I am not root...
Hi,
This is fairly common. I would look into the use of a proxy command to do exactly what you ask. In addition, though not strictly necessary, I also would generally recommend rsync rather than scp*. Both of these are documented on my page here:
http://www2.physics.ox.ac.uk/it-services/central-ssh-access
Its got an Oxford Physics specific slant to it but hopefully its helpful.
*I don't think rsync has any issue when the remote machine prints things either.
Sean On 13 Jun 2016 7:26 pm, "H" agents@meddatainc.com wrote:
On June 12, 2016 8:51:42 PM CEST, cpolish@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@centos.org https://lists.centos.org/mailman/listinfo/centos
Tried it but did not work since I am not root... _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
You can use rsync with a pull: rsync -a username@remote_host:/home/username/dir1 place_to_sync_on_local_machine Alexandru Roibu0771.781.689alexandru.roibu@live.com
Date: Mon, 13 Jun 2016 22:26:28 +0100 From: sean.bris@gmail.com To: centos@centos.org Subject: Re: [CentOS] scp via another server
Hi,
This is fairly common. I would look into the use of a proxy command to do exactly what you ask. In addition, though not strictly necessary, I also would generally recommend rsync rather than scp*. Both of these are documented on my page here:
http://www2.physics.ox.ac.uk/it-services/central-ssh-access
Its got an Oxford Physics specific slant to it but hopefully its helpful.
*I don't think rsync has any issue when the remote machine prints things either.
Sean On 13 Jun 2016 7:26 pm, "H" agents@meddatainc.com wrote:
On June 12, 2016 8:51:42 PM CEST, cpolish@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@centos.org https://lists.centos.org/mailman/listinfo/centos
Tried it but did not work since I am not root... _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
On Jun 12, 2016, at 11:21 AM, J Martin Rushton martinrushton56@btinternet.com wrote:
$ 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).
You probably meant:
$ scp -3 svr2:/path/to/source svr1:/path/to/dest
-- Jonathan Billings billings@negate.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 12/06/16 21:29, Jonathan Billings wrote:
On Jun 12, 2016, at 11:21 AM, J Martin Rushton martinrushton56@btinternet.com wrote:
$ 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).
You probably meant:
$ scp -3 svr2:/path/to/source svr1:/path/to/dest
-- Jonathan Billings billings@negate.org
I must say I haven't needed the -3 myself, but perhaps I've just been lucky. Martin