1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Ghostty] SSH&tmux時に "missing or unsuitable terminal: xterm-ghostty" と表示される事象の解決

1
Last updated at Posted at 2026-03-25

検証環境

  • ローカル
    • OS: macOS Tahoe 26.3
  • リモート
    • OS: Ubuntu 22.04.5 LTS

解決方法

ローカルにて以下の設定を行った後、SSH 先のリモートにて tmux を実行する

~/.config/ghostty/config

  • shell-integration-features = ssh-terminfo,ssh-env を追記する
  • Ghostty のアプリケーションを再起動する (必須)

~/.ssh/config

  • SetEnv TERM=xterm-256color は記載しない (上記の追記の意図に反する)

参考文献

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?