Putty congela aleatoriamente ao fazer login em uma máquina remota em outro continente

7

Eu tenho que ssh para uma máquina remota na Europa da Ásia todos os dias para o meu trabalho. Mas Putty congela às vezes em horários totalmente aleatórios e eu não tenho escolha senão fechar e reabrir uma nova sessão ssh. É frustrante, especialmente quando estou editando algo ou executando um programa de longa duração.

Eu sei que a pergunta realmente não tem muitos detalhes (porque nada parece estar errado com a rede). Alguém já teve esse tipo de problema com Putty e resolveu o problema?

Obrigado pelo seu tempo!

    
por Srikanth 25.05.2010 / 10:50

4 respostas

3

O congelamento pode ser um problema de tempo limite. Infelizmente, parece não haver nenhuma maneira fácil de corrigir isso, isso é tudo que eu encontrei nele: FAQ da Putty

Se isso ajuda muito bem. Mas se você quiser minimizar problemas com desconexões, você deve realmente começar a usar a tela O recurso Persistência descrito abaixo deve ser particularmente interessante.

Da Wikipédia:

Features
GNU Screen can be thought of as a text version of graphical window managers, or as a way of putting virtual terminals into any login session. It is a wrapper that allows multiple text programs to run at the same time, and provides features that allow the user to use the programs within a single interface productively.

Persistence
Similar to VNC, GNU Screen allows the user to start applications from one computer, and then reconnect from a different computer and continue using the same application without having to restart it. This makes migration between locations like work and home simple. Screen provides terminal-agnostic functionality so that users can disconnect and reconnect using different terminal types, allowing applications to continue running without being aware of the change in terminals.

Multiple windows
Multiple terminal sessions can be created, each of which usually runs a single application. The windows are numbered, and the user can use the keyboard to switch between them. Some GUI terminal emulators provide tabs or otherwise similar functionality to this. Each window has its own scroll-back buffer, so that output is captured even when the window isn't actively displayed, and that history can be saved even when migrating to another computer. Windows can be split-screened. While some text applications have this functionality built in, Screen allows any application to be split-screened alongside any number of other applications.

Session Sharing
Screen allows multiple computers to connect to the same session at once, allowing collaboration between multiple users. The same computer can also be used to make multiple simultaneous connections, providing alternative functionality to screen-splitting, particularly for computers with multiple monitors.

    
por 25.05.2010 / 11:11
2

A solução mais fácil que encontrei é pressionar ctrl-q, que retoma o controle de fluxo.

Normalmente você pressiona ctrl-s para salvar, o que eu acho muito irritante em massa, eu pensei que estava congelando no começo, mas na verdade está desligando o controle de fluxo, ctrl-q liga novamente.

    
por 18.10.2012 / 10:40
1

Você pode fazer com que o Putty envie pacotes do tipo keep-alive de tempos em tempos, seguindo o tutorial no link

Se o primeiro pôster estiver correto, você poderá aumentar o tempo limite com a seguinte edição de registro, o que deve significar menos desconexões.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"TcpMaxDataRetransmissions"=dword:00000010

Se você acredita que o problema é massa, tente outro cliente SSH, como poderosa

    
por 29.05.2010 / 22:22
0

A única solução que eu encontrei que realmente funciona é usando um linux vm na minha máquina windows. Eu inicializo isso (é linux mint), e inicio um terminal, e voila, minha conexão ssh funciona perfeitamente, sem mais problemas de congelamento! Eu também descobri que essa é a única maneira de fazer sshfs de forma confiável.

    
por 29.09.2015 / 08:03