/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Administration/Server/Network/ssh/sshtunnel.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2022-06-20 03:20:18 UTC
  • Revision ID: csa@suren.me-20220620032018-xquk369l0ukymgaa
Home Assistant

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Methodology to access servers behind firewall.
 
2
    1. From firewalled host SSH to server and stay logged
 
3
        ssh -R 2222:localhost:22 user@dside.dyndns.org sleep <duration>
 
4
            - maps server's 2222 port to port 22 on a localhost
 
5
    2. While the user from firewalled host is stayed logged, his ssh
 
6
    server can be accessed from the server with
 
7
        ssh -p 2222 localhost
 
8
    3. If you want the direct connection to publish access to the user
 
9
    server, in the server SSH configuration following option should be
 
10
    specified:
 
11
        GatewayPorts yes
 
12
    In this option is specified but firewalled user do not want to make
 
13
    port publicly accessible, he can specify 'localhost' as first parameter
 
14
    of -R option withinn SSH command:
 
15
        ssh -R localhost:\2222:localhost:22 user@dside.dyndns.org sleep <duration>
 
16
        
 
17
        
 
 
b'\\ No newline at end of file'