チケット #40995

Can't login if motd from server after username

登録: 2020-11-20 22:57 最終更新: 2023-04-09 07:43

報告者:
(匿名)
担当者:
(未割り当て)
チケットの種類:
状況:
オープン
コンポーネント:
マイルストーン:
優先度:
6
重要度:
5 - 中
解決法:
受領
ファイル:
なし
投票
点数: 0
No votes
0.0% (0/0)
0.0% (0/0)

詳細

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.

チケットの履歴 (8 件中 3 件表示)

2020-11-20 22:57 更新者: None
  • 新しいチケット "Can't login if motd from server after username" が作成されました
2023-01-05 04:31 更新者: None
コメント

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 更新者: nmaya
  • 解決法なし から 受領 に更新されました
  • マイルストーン(未割り当て) から Tera Term 4.107 に更新されました
  • コンポーネント(未割り当て) から TTSSH に更新されました
2023-01-05 08:14 更新者: nmaya
コメント

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
(編集済, 2023-01-05 23:04 更新者: nmaya)
2023-01-05 23:10 更新者: nmaya
コメント

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

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

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

2023-01-06 12:59 更新者: nmaya
コメント

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 更新者: nmaya
コメント
要素スコア
SSH接続できない+3
workaroundがある-1
当たってる人が少なそう-1

添付ファイルリスト

添付ファイルはありません

編集

ログインしていません。ログインしていない状態では、コメントに記載者の記録が残りません。 » ログインする