[opensuse] ssh: Connection reset by peer
Hello, I have a problem with ssh. Usually I work connected to several machines from a PC with openSUSE 10.2. But when I do the some from my laptop the connection is closed after some time of inactivity. The message I get in the terminal is: Read from remote host xxx.xxx.xxx.xxx: Connection reset by peer Connection to xxx.xxx.xxx.xxx closed. How can I tell to my laptop: don't close connection! Thank you. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
user spin wrote:
Hello, I have a problem with ssh. Usually I work connected to several machines from a PC with openSUSE 10.2. But when I do the some from my laptop the connection is closed after some time of inactivity. The message I get in the terminal is: Read from remote host xxx.xxx.xxx.xxx: Connection reset by peer Connection to xxx.xxx.xxx.xxx closed.
How can I tell to my laptop: don't close connection!
Thank you.
Check the /etc/hosts.allow and /etc/hosts.deny files -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 08 February 2008 14:15:28 user spin wrote:
Hello, I have a problem with ssh. Usually I work connected to several machines from a PC with openSUSE 10.2. But when I do the some from my laptop the connection is closed after some time of inactivity. The message I get in the terminal is: Read from remote host xxx.xxx.xxx.xxx: Connection reset by peer Connection to xxx.xxx.xxx.xxx closed.
How can I tell to my laptop: don't close connection!
Thank you.
You did not say anything about your network. Is this a local LAN or is it a ssh connection over the internet? Wired or Wireless? What kind/size/speed? In my experience this has always been a network issue. As far as I know there's nothing ssh can do about it. At my office I have had internet service from several difference companies. The amount of time/frequency with which I would get dropped varied widely between the different companies (latency did too). If it's the Internet I would suggest you bug your internet provider. Most of them are not helpful or sympathetic at all, you might have to really struggle to get them to do anything about it. If you're using a modem you probably won't get help at all (consider broadband). If you're having this problem on your wired LAN, you have bad hardware or bad cables. If you're having this problem with wireless . . . either get a wired LAN or talk to someone else ;-) JW -- ---------------------- System Administrator - Cedar Creek Software http://www.cedarcreeksoftware.com http://jwadmin.blogspot.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2008-02-08 at 14:41 -0600, Jonathan Wilson wrote: ...
If it's the Internet I would suggest you bug your internet provider. Most of them are not helpful or sympathetic at all, you might have to really struggle to get them to do anything about it. If you're using a modem you probably won't get help at all (consider broadband).
My adsl can drop the connection any time and get me a new IP, even in the middle of a download. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHrMKhtTMYHG2NR9URAkKpAKCOGo8AoGaIBLZ67+Gt6i/HXVlNtACeLiXo A0qLcA5u5g6cVGuyiFBiKOc= =+bUv -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
user spin wrote:
Hello, I have a problem with ssh. Usually I work connected to several machines from a PC with openSUSE 10.2. But when I do the some from my laptop the connection is closed after some time of inactivity. The message I get in the terminal is: Read from remote host xxx.xxx.xxx.xxx: Connection reset by peer Connection to xxx.xxx.xxx.xxx closed.
How can I tell to my laptop: don't close connection!
That's a fact of life, you can only work around it. Try running a top session to keep the connection alive. Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2008-02-08 at 12:43 -0800, Sloan wrote:
user spin wrote:
How can I tell to my laptop: don't close connection!
That's a fact of life, you can only work around it. Try running a top session to keep the connection alive.
Some clients have a keepalive option. could be this: -o option ServerAliveInterval ServerAliveCountMax TCPKeepAlive - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHrMM1tTMYHG2NR9URAo2GAJ9SG7aasOkxOoGNuvlQu2b2FtTMewCgjtcw rGHlovD0Jw86r3xIpYNyHhM= =g5ue -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
user spin wrote:
Hello, I have a problem with ssh. Usually I work connected to several machines from a PC with openSUSE 10.2. But when I do the some from my laptop the connection is closed after some time of inactivity. The message I get in the terminal is: Read from remote host xxx.xxx.xxx.xxx: Connection reset by peer Connection to xxx.xxx.xxx.xxx closed.
How can I tell to my laptop: don't close connection!
Thank you.
There is a setting somewhere, I don't know where, but it is about 300 secs or 5 mins. of inactivity. If I'm going away for a moment or two, just start tailf /var/log/mail (if a mail server) or tailf /var/log/messages if you have some syslog activity and that will hold the connection until you get back; Another, "more proper" way to do it is to use "screen", the detach the session, leave it running, and then reattach when necessary. Note, this doesn't save a lot of keystrokes, but if you have a process on a remote system you need to leave running, either screen or backgrounding the process makes the most sense. See man screen (basically just type screen in any terminal, then ctrl-a h and choose detach or ctrl-a d. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* David C. Rankin
See man screen (basically just type screen in any terminal, then ctrl-a h and choose detach or ctrl-a d.
<ctrl>a h ???? does he really want to save a "hardcopy" ?? <ctrl>a <ctrl>d is all that is necessary unless you have reconfigured the keys..... -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Patrick Shanahan wrote:
* David C. Rankin
[02-09-08 02:32]: ... See man screen (basically just type screen in any terminal, then ctrl-a h and choose detach or ctrl-a d.
<ctrl>a h ???? does he really want to save a "hardcopy" ??
<ctrl>a <ctrl>d is all that is necessary
unless you have reconfigured the keys.....
man screen C-a d C-a C-d (detach) Detach screen from this terminal. If you like the extra keystoke, it's up to you. ctrl-a h is hardcopy not help, in screen, the help is ctrl-a ? -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (7)
-
Bruce Ferrell
-
Carlos E. R.
-
David C. Rankin
-
Jonathan Wilson
-
Patrick Shanahan
-
Sloan
-
user spin