ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Leonid Krivoshein <klark.devel@gmail.com>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] Странный глюк ssh
Date: Mon, 18 Feb 2019 01:05:05 +0300
Message-ID: <5546da4b-0497-d617-43b5-5ff5c858fefe@gmail.com> (raw)
In-Reply-To: <7da66bbe-d17d-4366-4793-008a414da2eb@gmail.com>


18.02.2019 00:29, Alexei V. Mezin пишет:
> packet_write_wait: Connection to 81.ХХ.ХХ.ХХ port 2022: Broken pipe
>
> То есть сразу после нажатия enter мгновенный отвал сессии, без 
> диагностики и предупреждений. И это точно не отвал по таймауту, т.к. 
> происходит прямо во время активной работы в терминале.

На стороне сервера лечится добавлением в /etc/openssh/sshd_config:

ClientAliveInterval 600
ClientAliveCountMax 5

а также работой внутри tmux/screen сессии.
На стороне клиента можно добавить в ~/.ssh/config:

Host *
     TCPKeepAlive yes
     ServerAliveInterval 600

Возможно, на данную ситуацию также влияет некий параметр безопасности 
стека TCP/IP sysctl, в том числе, на одном из промежуточных узлов и, при 
потере одного пакета, нарушается требуемая последовательность. Поэтому 
удалённо лучше всегда работать через tmux или screen.


-- 
Best regards,
Leonid Krivoshein.



      reply	other threads:[~2019-02-17 22:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-17 21:29 Alexei V. Mezin
2019-02-17 22:05 ` Leonid Krivoshein [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5546da4b-0497-d617-43b5-5ff5c858fefe@gmail.com \
    --to=klark.devel@gmail.com \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git