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
Container registry
Monitor
Service Desk
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
8873045d
Commit
8873045d
authored
4 years ago
by
Michael Blaschek
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
648c67d9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SSH-VPN-VNC/README.md
+7
-2
7 additions, 2 deletions
SSH-VPN-VNC/README.md
with
7 additions
and
2 deletions
SSH-VPN-VNC/README.md
+
7
−
2
View file @
8873045d
...
@@ -9,10 +9,15 @@ You should be able to use an SSH tunnel.
...
@@ -9,10 +9,15 @@ You should be able to use an SSH tunnel.
Assuming you're trying to transfer a file from a remote computer ("remote") to your local computer ("local"),
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:
establish the tunnel via the third computer ("gateway") by typing this on your local computer:
`ssh -fNL 12345:remote:22 gatewaylogin@gateway`
```
bash
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):
Then you can run an unlimited amount of SCP commands on this tunnel (still typing on your local computer):
`scp -P 12345 remotelogin@localhost://path/to/remote/file /local/path/where/you/want/file`
```
bash
scp
-P
12345 remotelogin@localhost://path/to/remote/file /local/path/where/you/want/file
```
I just tested this on my network, and it worked perfectly.
I just tested this on my network, and it worked perfectly.
The above method is fine if the remote network is secure, but if it is not secure,
The above method is fine if the remote network is secure, but if it is not secure,
...
...
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