Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Computer Resources
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IMGW
Computer Resources
Commits
b81fb2a7
Commit
b81fb2a7
authored
4 years ago
by
Michael Blaschek
Browse files
Options
Downloads
Patches
Plain Diff
Update SSH-VPN-VNC/README.md
parent
db63cd26
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SSH-VPN-VNC/README.md
+17
-3
17 additions, 3 deletions
SSH-VPN-VNC/README.md
with
17 additions
and
3 deletions
SSH-VPN-VNC/README.md
+
17
−
3
View file @
b81fb2a7
...
...
@@ -188,10 +188,20 @@ Todo add infos on `ssh-agent`
# Q: How to transfer files between two VPN networks?
You should be able to use an SSH tunnel
.
You should be able to use an SSH tunnel
via a gateway server
Assuming you're trying to transfer a file from a remote computer ("remote") to your local computer ("local"),
establish the tunnel via the third computer ("gateway") by typing this on your local computer:
Situation
```
VPN-1 VPN-2
__________ /| ___________ /| __________
| local | | | | gateway | | | | remote |
| |---| |----<>------ | Firewall | |
| | Firewall | \---<>-----| |---------| |
__________ | | ___________ | | __________
|/ |/
```
Assuming you're trying to transfer a file from/to a remote computer ("remote") from/to your local computer ("local"),
establish a tunnel via a third computer ("gateway") by typing this on your local computer:
```
bash
$
ssh
-fNL
12345:remote:22 gatewaylogin@gateway
...
...
@@ -199,13 +209,17 @@ $ ssh -fNL 12345:remote:22 gatewaylogin@gateway
Then you can run an unlimited amount of SCP commands on this tunnel (still typing on your local computer):
```
bash
# scp [SRC] [DEST]
$
scp
-P
12345 remotelogin@localhost://path/to/remote/file /local/path/where/you/want/file
```
another option is to use
`rsync`
with a gateway command:
```
bash
# rsync [SRC] [DEST]
$
rsync
-avz
-r
--stats
--progress
-e
"ssh gateway ssh"
remote:/src/documents/ /dest/documents
```
**Note: key-based authentication is required from the gateway to the remote server using rsync.**
Initial testing showed that using key-based authentication between gateway and remote is required.
# Q: How to connect to Jet, SRVX8, SRVX2?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment