How To Forward Local Host & Port via SSH Client To Remote SSH Server Как ожидает локального хоста и порт через SSH клиент для удаленного сервера SSH
SSH is aptly termed as poor man’s VPN. SSH является, как метко назвал бедняка VPN. You can use it to either forward local host host name and port to a remote server running ssh daemon. Вы можете использовать его либо вперед локального хоста имя хоста и порт на удаленном сервере работает ssh демон. You can also use it to forward remote server’s port to a local host and port. Вы также можете использовать его вперед на удаленном сервере порт для локального хоста и порт.
For example you may want to make a particular host and port (say running your web server) on your intranet available to a remote machine running ssh server. Например, вы можете захотеть сделать частности хост и порт (скажем, работает веб-сервер) на Вашей интрасети для удаленной машине работает ssh-сервер. I use this configuration to expose our intranet web server to a manager working from home. Я использую эту конфигурацию для разоблачения нашего интранет веб-сервер для работы менеджера из дома. Our intranet is behind two firewall and initiating the connection from outside is impossible. Наши интранет стоит за два брандмауэра и инициирования соединения извне невозможно. This is how we do it: Вот как мы это делаем:
ssh -R remote_port : local_host : local_port remote_login @ remote_ip ssh-R remote_port: local_host: local_port remote_login @ remote_ip
remote_port - a port which listens to incoming connections on the server and forwards them to local_host at port local_port . remote_port - порт который слушает входящие соединения на сервере и перенаправляет их к local_host в порту local_port.
remote_login - login account on remote server. remote_login - регистрационная запись на удаленном сервере.
remote_ip - Remote IP address or hostname to connect to. remote_ip - Удаленный IP-адрес или имя хоста подключаться.
Note: If you ssh daemon is running on a non-standard port (recommended) then use: Примечание: Если вы ssh демон запущен на нестандартный порт (рекомендуется), а затем использовать:
ssh -p ssh_server_port -R remote_port:local_host:local_port remote_login@remote_ip ssh-п ssh_server_port-R remote_port: local_host: local_port remote_login @ remote_ip
The remote_port is opened only for localhost clients by default. Remote_port открыт только для локального клиентам по умолчанию. To open it for other clients open sshd_config (of Open SSH server) and set GatewayPorts yes . Чтобы открыть ее для других клиентов, открытые sshd_config (Открытое SSH-сервер) и установить GatewayPorts да. Make sure that the line is uncommented. Убедитесь в том, что линия раскомментировали.
Filed under Поданного в соответствии с Computer Security Computer Security , Enterprise Software Программное обеспечение предпринимательства , Headline News Headline News , How To Как , Linux , Open Source Software Open Source Software , Tech Note Технология Примечание , Web Веб | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | это статья |
Email this Article Отослать Статья
You may also like to read Вы можете также люблю читать |




