任务单 #40995

Can't login if motd from server after username

开放日期: 2020-11-20 22:57 最后更新: 2023-04-09 07:43

报告人:
(匿名)
属主:
(无)
类型:
状态:
开启
组件:
优先:
6
严重性:
5 - Medium
处理结果:
Accepted
文件:
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Details

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.

任务单历史 (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
评论

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
  • 处理结果 Update from to Accepted
  • 里程碑 Update from (无) to Tera Term 4.107
  • 组件 Update from (无) to TTSSH
2023-01-05 08:14 Updated by: 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
(Edited, 2023-01-05 23:04 Updated by: nmaya)
2023-01-05 23:10 Updated by: nmaya
评论

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

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

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

2023-01-06 12:59 Updated by: 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 Updated by: nmaya
评论
要素スコア
SSH接続できない+3
workaroundがある-1
当たってる人が少なそう-1

Attachment File List

No attachments

编辑

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