странный вывод на туннелировании ssh: вывод перестал работать; подключение перестало работать: Соединение приведено к таймауту;

Все, в чем я нуждаюсь, является файловой службой, аутентификацией пользователя и управлением конфигурацией машины.

Я не уверен, что Вы имеете в виду об "управлении конфигурацией машины", но централизованное управление пользователями, совместный доступ к файлам, профили роуминга, общие каталоги, и т.д. могут все быть выполнены с Samba.

18
задан 19 February 2013 в 12:22
2 ответа

У меня возникли похожие проблемы. Если вы используете туннель с Firefox через ssh, некоторые HTTP-соединения могут просто отключиться из-за загрузки сервера или неправильной конфигурации. Когда соединение действительно истечет, вы получите сообщение об ошибке, подобное указанному вами.

Вы можете подавить эти сообщения с помощью следующей команды

ssh user@xx.yy.zz.41 -p 1234 -D 9898 -q

На странице руководства ssh (1)

 -q      Quiet mode.  Causes most warning and diagnostic messages to be sup-
         pressed.

Подавление сообщение не позволит предупреждениям испортить сеансы ssh или screen.

21
ответ дан 2 December 2019 в 20:24

Установите для GatewayPorts значение yes и повторите попытку.

ssh -o 'GatewayPorts yes' user@xx.yy.zz.41 -p 1234 -D 9898

man ssh_config

 DynamicForward
         Specifies that a TCP port on the local machine be forwarded over the secure channel, and the application protocol
         is then used to determine where to connect to from the remote machine.

         The argument must be [bind_address:]port.  IPv6 addresses can be specified by enclosing addresses in square
         brackets.  By default, the local port is bound in accordance with the GatewayPorts setting.  However, an explicit
         bind_address may be used to bind the connection to a specific address.  The bind_address of “localhost” indicates
         that the listening port be bound for local use only, while an empty address or ‘*’ indicates that the port should
         be available from all interfaces.

         Currently the SOCKS4 and SOCKS5 protocols are supported, and ssh(1) will act as a SOCKS server.  Multiple for‐
         wardings may be specified, and additional forwardings can be given on the command line.  Only the superuser can
         forward privileged ports.

 GatewayPorts
         Specifies whether remote hosts are allowed to connect to local forwarded ports.  By default, ssh(1) binds local
         port forwardings to the loopback address.  This prevents other remote hosts from connecting to forwarded ports.
         GatewayPorts can be used to specify that ssh should bind local port forwardings to the wildcard address, thus
         allowing remote hosts to connect to forwarded ports.  The argument must be “yes” or “no”.  The default is “no”.
3
ответ дан 2 December 2019 в 20:24

Теги

Похожие вопросы