Ticket #40995

Can't login if motd from server after username

Date d'ouverture: 2020-11-20 22:57 Dernière mise à jour: 2023-04-09 07:43

Rapporteur:
(Anonyme)
Propriétaire:
(Aucun)
Type:
État:
Ouvert
Composant:
Priorité:
6
Sévérité:
5 - moyen
Résolution:
Accepted
Fichier:
Aucun
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Détails

Tera Term will not leave the SSH Authentication window if the device connected to sends text after the username is entered such as the system MOTD. I've tried switching it to other authentication types but this doesn't help. Clicking ok on the window does nothing. If you click disconnect you can see the MOTD for a brief period just before the window closes.

Ticket History (3/8 Histories)

2020-11-20 22:57 Updated by: None
  • New Ticket "Can't login if motd from server after username" created
2023-01-05 04:31 Updated by: None
Commentaire

This bug is (also) in TeraTerm version 4.106 (SVN#9298)

To reproduce this:

ON THE SSH SERVER (running OpenSSH 7.4+) In the file /etc/ssh/sshd_config change the following line:

Banner none

To:

Banner /etc/motd

Restart SSHd or reboot the server.

Note: The Banner line in /etc/ssh/sshd_config is sometimes commented out. Remove the # from the beginning and change the "none" to "/etc/motd".

In TeraTerm: Attempt to connect to the server. Behavior will be as described in original post.

To revert: ON THE SSH SERVER: In /etc/ssh/sshd_config

Change:

Banner /etc/motd

To:

Banner none

Restart SSHd or reboot the server.

2023-01-05 07:45 Updated by: nmaya
  • Résolution Update from Aucun to Accepted
  • Jalon Update from (Aucun) to Tera Term 4.107
  • Composant Update from (Aucun) to TTSSH
2023-01-05 08:14 Updated by: nmaya
Commentaire

SSH 認証時に SSH_MSG_USERAUTH_BANNER を受信したときの動作

  • SSH 認証が通ったあと、handle_SSH2_userauth_banner() で処理される
    • バナー内容がTTSSH.LOGに記録される
  • 認証ダイアログが閉じない
    • VTウィンドウにバナー内容が表示されない
    • OK を押しても何も起こらない
    • Disconnect を押す
      • VTウィンドウにバナー内容が表示される
      • 切断される

設定による違い

  • AuthBanner=0 ... No display ... no problem
  • AuthBanner=1 ... Display in VT window ... this issue
  • AuthBanner=2 ... Display by pop-up ... no problem
  • AuthBanner=3 ... Display by balloon tip ... no problem
(Edited, 2023-01-05 23:04 Updated by: nmaya)
2023-01-05 23:10 Updated by: nmaya
Commentaire

以下の条件が重なったときに再現します。

  • サーバが Banner を送ってくる
  • AuthBanner=1
  • CheckAuthListFirst=1

4-stable でも trunk でも再現しました。

2023-01-06 12:59 Updated by: nmaya
Commentaire

Thank you for your reporting.

Change CheckAuthListFirst to 0 (disable "Check the enabled authentication methods before login") will be a workaround.

2023-01-10 12:50 Updated by: nmaya
Commentaire
要素スコア
SSH接続できない+3
workaroundがある-1
当たってる人が少なそう-1

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion