Sudden 'Connection to *** closed by remote host' while working
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
So, I often connect to my computer from outside via ssh, and normally there is no problem. But from time to time, I get 'Connection to (my host name) closed by remote host' suddenly after 10 minutes or longer without any apparent reasons.
Since I have firewall both in host network and client network, I am using another ssh server and establish ssh tunnel, and then connect to my remote host like below.
[remote] -reversed ssh tunnel- [server] -ssh tunnel- [client]
I have tried setting 'TCPKeepAlive' to 'no' and it improved the connection stability a bit, but still I get the sudden disconnect.
There is no such problem when the client is in the same network as the remote host, where I can connect to the remote directly without using ssh tunnel.
Is there any idea to make the connection more stable?
Thank you
linux ssh networking remote
New contributor
add a comment |Â
up vote
0
down vote
favorite
So, I often connect to my computer from outside via ssh, and normally there is no problem. But from time to time, I get 'Connection to (my host name) closed by remote host' suddenly after 10 minutes or longer without any apparent reasons.
Since I have firewall both in host network and client network, I am using another ssh server and establish ssh tunnel, and then connect to my remote host like below.
[remote] -reversed ssh tunnel- [server] -ssh tunnel- [client]
I have tried setting 'TCPKeepAlive' to 'no' and it improved the connection stability a bit, but still I get the sudden disconnect.
There is no such problem when the client is in the same network as the remote host, where I can connect to the remote directly without using ssh tunnel.
Is there any idea to make the connection more stable?
Thank you
linux ssh networking remote
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
So, I often connect to my computer from outside via ssh, and normally there is no problem. But from time to time, I get 'Connection to (my host name) closed by remote host' suddenly after 10 minutes or longer without any apparent reasons.
Since I have firewall both in host network and client network, I am using another ssh server and establish ssh tunnel, and then connect to my remote host like below.
[remote] -reversed ssh tunnel- [server] -ssh tunnel- [client]
I have tried setting 'TCPKeepAlive' to 'no' and it improved the connection stability a bit, but still I get the sudden disconnect.
There is no such problem when the client is in the same network as the remote host, where I can connect to the remote directly without using ssh tunnel.
Is there any idea to make the connection more stable?
Thank you
linux ssh networking remote
New contributor
So, I often connect to my computer from outside via ssh, and normally there is no problem. But from time to time, I get 'Connection to (my host name) closed by remote host' suddenly after 10 minutes or longer without any apparent reasons.
Since I have firewall both in host network and client network, I am using another ssh server and establish ssh tunnel, and then connect to my remote host like below.
[remote] -reversed ssh tunnel- [server] -ssh tunnel- [client]
I have tried setting 'TCPKeepAlive' to 'no' and it improved the connection stability a bit, but still I get the sudden disconnect.
There is no such problem when the client is in the same network as the remote host, where I can connect to the remote directly without using ssh tunnel.
Is there any idea to make the connection more stable?
Thank you
linux ssh networking remote
linux ssh networking remote
New contributor
New contributor
New contributor
asked 4 mins ago
user300049
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
user300049 is a new contributor. Be nice, and check out our Code of Conduct.
user300049 is a new contributor. Be nice, and check out our Code of Conduct.
user300049 is a new contributor. Be nice, and check out our Code of Conduct.
user300049 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478325%2fsudden-connection-to-closed-by-remote-host-while-working%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password