Session AWS SSH fermée par server de manière intermittente

J'ai connecté à l'instance Ubuntu d'AWS EC2 en utilisant le mastic sur Windows 7 (authentification ppk). La plupart du time, je reçois ce message sur le mastic: Erreur de réseau: le logiciel a provoqué une interruption de connection . Mais cette déconnection se produit de manière intermittente.

La session de mastic a les parameters suivants sous "login":

  • Secondes entre Keepalives: 5 (Aussi essayé avec 30)
  • Activer TCP Keepalives: Définir sur True (Checked)

J'ai capturé les packages réseau à l'aide de Wireshark. Il montre que le server envoie le signal de RESET de connection au système client.

J'ai 2 sessions de mastic connectées au même server. C'est pourquoi il montre 2 packages RESET. entrez la description de l'image ici

Voici les journaux SSH (auth.log)

May 13 07:38:52 aws-server-1 sshd[30699]: Accepted publickey for dev-user from xx.xx.xx.xx port 49235 ssh2 May 13 07:38:52 aws-server-1 sshd[30699]: pam_unix(sshd:session): session opened for user dev-user by (uid=0) May 13 07:39:01 aws-server-1 sudo: dev-user : TTY=pts/1 ; PWD=/home/dev-user ; USER=root ; COMMAND=/usr/bin/tail -f /var/log/syslog May 13 07:39:01 aws-server-1 sudo: pam_unix(sudo:session): session opened for user root by dev-user(uid=1009) May 13 07:39:01 aws-server-1 CRON[30961]: pam_unix(cron:session): session opened for user root by (uid=0) May 13 07:39:01 aws-server-1 CRON[30961]: pam_unix(cron:session): session closed for user root May 13 07:39:43 aws-server-1 sshd[30699]: pam_unix(sshd:session): session closed for user dev-user May 13 07:39:43 aws-server-1 sudo: pam_unix(sudo:session): session closed for user root May 13 07:39:44 aws-server-1 sshd[30025]: pam_unix(sshd:session): session closed for user dev-user 

Sessions user:

 dev-user pts/0 xx.xx.xx.xx Wed May 13 07:40 still logged in dev-user pts/1 xx.xx.xx.xx Wed May 13 07:38 - 07:39 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:21 - 07:39 (00:18) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:36 - 07:13 (00:36) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:35 - 07:13 (00:37) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:09 - 06:10 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:08 - 06:13 (00:04) dev-user pts/0 xx.xx.xx.xx Wed May 13 05:12 - 06:04 (00:52) dev-user pts/0 xx.xx.xx.xx Tue May 12 14:14 - 16:24 (02:10) dev-user pts/0 xx.xx.xx.xx Tue May 12 13:27 - 13:39 (00:11) dev-user pts/0 xx.xx.xx.xx Tue May 12 12:41 - 12:41 (00:00) dev-user pts/1 xx.xx.xx.xx Tue May 12 10:39 - 10:39 (00:00) dev-user pts / 0 xx.xx.xx.xx mer 13 mai 07h40 toujours connecté dev-user pts/0 xx.xx.xx.xx Wed May 13 07:40 still logged in dev-user pts/1 xx.xx.xx.xx Wed May 13 07:38 - 07:39 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:21 - 07:39 (00:18) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:36 - 07:13 (00:36) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:35 - 07:13 (00:37) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:09 - 06:10 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:08 - 06:13 (00:04) dev-user pts/0 xx.xx.xx.xx Wed May 13 05:12 - 06:04 (00:52) dev-user pts/0 xx.xx.xx.xx Tue May 12 14:14 - 16:24 (02:10) dev-user pts/0 xx.xx.xx.xx Tue May 12 13:27 - 13:39 (00:11) dev-user pts/0 xx.xx.xx.xx Tue May 12 12:41 - 12:41 (00:00) dev-user pts/1 xx.xx.xx.xx Tue May 12 10:39 - 10:39 (00:00) Dev-user pts / 1 xx.xx.xx.xx Wed May 13 07:38 - 07:39 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:40 still logged in dev-user pts/1 xx.xx.xx.xx Wed May 13 07:38 - 07:39 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:21 - 07:39 (00:18) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:36 - 07:13 (00:36) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:35 - 07:13 (00:37) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:09 - 06:10 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:08 - 06:13 (00:04) dev-user pts/0 xx.xx.xx.xx Wed May 13 05:12 - 06:04 (00:52) dev-user pts/0 xx.xx.xx.xx Tue May 12 14:14 - 16:24 (02:10) dev-user pts/0 xx.xx.xx.xx Tue May 12 13:27 - 13:39 (00:11) dev-user pts/0 xx.xx.xx.xx Tue May 12 12:41 - 12:41 (00:00) dev-user pts/1 xx.xx.xx.xx Tue May 12 10:39 - 10:39 (00:00) dev-user pts / 0 xx.xx.xx.xx mer. 13 mai 07:21 - 07:39 (00:18) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:40 still logged in dev-user pts/1 xx.xx.xx.xx Wed May 13 07:38 - 07:39 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:21 - 07:39 (00:18) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:36 - 07:13 (00:36) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:35 - 07:13 (00:37) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:09 - 06:10 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:08 - 06:13 (00:04) dev-user pts/0 xx.xx.xx.xx Wed May 13 05:12 - 06:04 (00:52) dev-user pts/0 xx.xx.xx.xx Tue May 12 14:14 - 16:24 (02:10) dev-user pts/0 xx.xx.xx.xx Tue May 12 13:27 - 13:39 (00:11) dev-user pts/0 xx.xx.xx.xx Tue May 12 12:41 - 12:41 (00:00) dev-user pts/1 xx.xx.xx.xx Tue May 12 10:39 - 10:39 (00:00) dev-user pts / 1 xx.xx.xx.xx mer 13 mai 06:36 - 07:13 (00:36) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:40 still logged in dev-user pts/1 xx.xx.xx.xx Wed May 13 07:38 - 07:39 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:21 - 07:39 (00:18) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:36 - 07:13 (00:36) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:35 - 07:13 (00:37) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:09 - 06:10 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:08 - 06:13 (00:04) dev-user pts/0 xx.xx.xx.xx Wed May 13 05:12 - 06:04 (00:52) dev-user pts/0 xx.xx.xx.xx Tue May 12 14:14 - 16:24 (02:10) dev-user pts/0 xx.xx.xx.xx Tue May 12 13:27 - 13:39 (00:11) dev-user pts/0 xx.xx.xx.xx Tue May 12 12:41 - 12:41 (00:00) dev-user pts/1 xx.xx.xx.xx Tue May 12 10:39 - 10:39 (00:00) dev-user pts / 0 xx.xx.xx.xx mer 13 mai 06:35 - 07:13 (00:37) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:40 still logged in dev-user pts/1 xx.xx.xx.xx Wed May 13 07:38 - 07:39 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:21 - 07:39 (00:18) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:36 - 07:13 (00:36) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:35 - 07:13 (00:37) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:09 - 06:10 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:08 - 06:13 (00:04) dev-user pts/0 xx.xx.xx.xx Wed May 13 05:12 - 06:04 (00:52) dev-user pts/0 xx.xx.xx.xx Tue May 12 14:14 - 16:24 (02:10) dev-user pts/0 xx.xx.xx.xx Tue May 12 13:27 - 13:39 (00:11) dev-user pts/0 xx.xx.xx.xx Tue May 12 12:41 - 12:41 (00:00) dev-user pts/1 xx.xx.xx.xx Tue May 12 10:39 - 10:39 (00:00) dev-user pts / 1 xx.xx.xx.xx mer 13 mai 06:09 - 06:10 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:40 still logged in dev-user pts/1 xx.xx.xx.xx Wed May 13 07:38 - 07:39 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:21 - 07:39 (00:18) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:36 - 07:13 (00:36) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:35 - 07:13 (00:37) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:09 - 06:10 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:08 - 06:13 (00:04) dev-user pts/0 xx.xx.xx.xx Wed May 13 05:12 - 06:04 (00:52) dev-user pts/0 xx.xx.xx.xx Tue May 12 14:14 - 16:24 (02:10) dev-user pts/0 xx.xx.xx.xx Tue May 12 13:27 - 13:39 (00:11) dev-user pts/0 xx.xx.xx.xx Tue May 12 12:41 - 12:41 (00:00) dev-user pts/1 xx.xx.xx.xx Tue May 12 10:39 - 10:39 (00:00) dev-user pts / 0 xx.xx.xx.xx mer 13 mai 06:08 - 06:13 (00:04) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:40 still logged in dev-user pts/1 xx.xx.xx.xx Wed May 13 07:38 - 07:39 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:21 - 07:39 (00:18) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:36 - 07:13 (00:36) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:35 - 07:13 (00:37) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:09 - 06:10 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:08 - 06:13 (00:04) dev-user pts/0 xx.xx.xx.xx Wed May 13 05:12 - 06:04 (00:52) dev-user pts/0 xx.xx.xx.xx Tue May 12 14:14 - 16:24 (02:10) dev-user pts/0 xx.xx.xx.xx Tue May 12 13:27 - 13:39 (00:11) dev-user pts/0 xx.xx.xx.xx Tue May 12 12:41 - 12:41 (00:00) dev-user pts/1 xx.xx.xx.xx Tue May 12 10:39 - 10:39 (00:00) Dev-user pts / 0 xx.xx.xx.xx Wed May 13 05:12 - 06:04 (00:52) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:40 still logged in dev-user pts/1 xx.xx.xx.xx Wed May 13 07:38 - 07:39 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:21 - 07:39 (00:18) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:36 - 07:13 (00:36) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:35 - 07:13 (00:37) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:09 - 06:10 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:08 - 06:13 (00:04) dev-user pts/0 xx.xx.xx.xx Wed May 13 05:12 - 06:04 (00:52) dev-user pts/0 xx.xx.xx.xx Tue May 12 14:14 - 16:24 (02:10) dev-user pts/0 xx.xx.xx.xx Tue May 12 13:27 - 13:39 (00:11) dev-user pts/0 xx.xx.xx.xx Tue May 12 12:41 - 12:41 (00:00) dev-user pts/1 xx.xx.xx.xx Tue May 12 10:39 - 10:39 (00:00) dev-user pts / 0 xx.xx.xx.xx Tue 12 mai 14:14 - 16:24 (02:10) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:40 still logged in dev-user pts/1 xx.xx.xx.xx Wed May 13 07:38 - 07:39 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:21 - 07:39 (00:18) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:36 - 07:13 (00:36) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:35 - 07:13 (00:37) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:09 - 06:10 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:08 - 06:13 (00:04) dev-user pts/0 xx.xx.xx.xx Wed May 13 05:12 - 06:04 (00:52) dev-user pts/0 xx.xx.xx.xx Tue May 12 14:14 - 16:24 (02:10) dev-user pts/0 xx.xx.xx.xx Tue May 12 13:27 - 13:39 (00:11) dev-user pts/0 xx.xx.xx.xx Tue May 12 12:41 - 12:41 (00:00) dev-user pts/1 xx.xx.xx.xx Tue May 12 10:39 - 10:39 (00:00) Dev-user pts / 0 xx.xx.xx.xx Tue 12 mai 13:27 - 13:39 (00:11) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:40 still logged in dev-user pts/1 xx.xx.xx.xx Wed May 13 07:38 - 07:39 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:21 - 07:39 (00:18) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:36 - 07:13 (00:36) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:35 - 07:13 (00:37) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:09 - 06:10 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:08 - 06:13 (00:04) dev-user pts/0 xx.xx.xx.xx Wed May 13 05:12 - 06:04 (00:52) dev-user pts/0 xx.xx.xx.xx Tue May 12 14:14 - 16:24 (02:10) dev-user pts/0 xx.xx.xx.xx Tue May 12 13:27 - 13:39 (00:11) dev-user pts/0 xx.xx.xx.xx Tue May 12 12:41 - 12:41 (00:00) dev-user pts/1 xx.xx.xx.xx Tue May 12 10:39 - 10:39 (00:00) Dev-user pts / 0 xx.xx.xx.xx Tue 12 mai 12:41 - 12:41 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:40 still logged in dev-user pts/1 xx.xx.xx.xx Wed May 13 07:38 - 07:39 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 07:21 - 07:39 (00:18) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:36 - 07:13 (00:36) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:35 - 07:13 (00:37) dev-user pts/1 xx.xx.xx.xx Wed May 13 06:09 - 06:10 (00:00) dev-user pts/0 xx.xx.xx.xx Wed May 13 06:08 - 06:13 (00:04) dev-user pts/0 xx.xx.xx.xx Wed May 13 05:12 - 06:04 (00:52) dev-user pts/0 xx.xx.xx.xx Tue May 12 14:14 - 16:24 (02:10) dev-user pts/0 xx.xx.xx.xx Tue May 12 13:27 - 13:39 (00:11) dev-user pts/0 xx.xx.xx.xx Tue May 12 12:41 - 12:41 (00:00) dev-user pts/1 xx.xx.xx.xx Tue May 12 10:39 - 10:39 (00:00) 

Aucune des sessions ci-dessus n'est terminée par l'user. Toutes les sessions sont terminées par le server. Nous n'avons pas modifié les parameters SSH.

Comment puis-je résoudre ce problème?