Wirenboard6:InstallingOnTheRemoteSite/en: различия между версиями

Новая страница: «Another fallback controller connection will be based on the <code>AutoSSH</code>. The mechanism of work is as follows: SSH-connection from the controller to the s…»
(Новая страница: «Startup of the OpenVPN service on the controller is enabled by the command: <pre>update-rc.d openvpn defaults</pre> Check server availability <code>ping 10.8.0…»)
(Новая страница: «Another fallback controller connection will be based on the <code>AutoSSH</code>. The mechanism of work is as follows: SSH-connection from the controller to the s…»)
Строка 293: Строка 293:
== AutoSSH ==
== AutoSSH ==


Еще одно резервное подключение к контроллеру сделаем на основе <code>AutoSSH</code>. Механизм работы таков: с контроллера устанавливается ssh-соединение к серверу, при этом ssh-порт контроллера пробрасывается на один из свободных портов на localhost сервера. Сервис аutossh следит за тем, что ssh-соединение не разорвано, и в случае разрыва восстанавливает его. Восстановление происходит не мгновенно какое-то время порт, используемый на <code>localhost</code> сервера удерживается демоном <code>sshd</code>.  
Another fallback controller connection will be based on the <code>AutoSSH</code>. The mechanism of work is as follows: SSH-connection from the controller to the server is established, and the ssh-port of the controller is forwarded to one of the free ports on the localhost server. Service аutossh ensures that the ssh connection is not broken, and in case of the gap restores it. Recovery is not instantaneous for a while, the port used on the server's <code>localhost</code> is held by the <code>sshd</code>daemon.  


Устанавливаем на контроллере <code>apt-get install autossh</code>. Генерируем пару ключей для пользователя <code>root</code>:
Устанавливаем на контроллере <code>apt-get install autossh</code>. Генерируем пару ключей для пользователя <code>root</code>:
12 063

правки