mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 08:25:27 +02:00
[GH-ISSUE #193] Server to Server SCP through the bastion #47
Labels
No labels
answered
bug
documentation
enhancement
enhancement
feature
feature
kept-open-for-info
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/the-bastion#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RomainL972 on GitHub (Jun 4, 2021).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/193
Hi,
We've been using The Bastion at our organization for some time and I noticed that it's not possible to use SCP to copy a file from one host on the bastion to another one also on the bastion. Is that a limitation of the software or is there some configuration needed ?
Thanks.
@speed47 commented on GitHub (Jun 14, 2021):
Hello,
This is not supported (yet). I checked and it seems that when you type the following command from machine
A:user@A$ scp B:file C:fileThis is what happens:
scp file C:fileon Bscp -tWith a bastion between A and the rest of the infrastructure, this would mean:
scp file C:fileon Bscp -tIn both cases, this implies that B needs to have direct access to C.
I'll check if this can work with some minor adjustments to the code.
@speed47 commented on GitHub (Jun 14, 2021):
This should be doable, however in the meantime, you should be able to do, if your bastion alias is
bssh, instead of:scp -S ~/scp_bastion server1:file1 server2:file2Try this:
bssh server1 -- scp file1 server2:file2It's functionally equivalent, and what happens under the hood if you use
scpdirectly with 2 remote servers.If you have the chance to test this with your setup, can you confirm it works?
@RomainL972 commented on GitHub (Aug 19, 2021):
Hi, what I want to do is to download a file from a server behind the bastion, and to upload it to another server also behind the bastion, like what is shown here : https://unix.stackexchange.com/a/184435