shell-integration-features ssh-terminfo and ssh-env don't work when connecting to AWS EC2 instances. #9708
Replies: 2 comments 4 replies
Does this mean using a command like the following? $ aws ec2-instance-connect ssh --instance-id i-1234567890example(taken from https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-methods.html#connect-linux-inst-eic-cli-ssh, sorry, I don't have experience with AWS). In that case, yes, the shell integration features won't help, as they work by adding a shell alias for You can either follow the directions further down on the linked page to "Connect using your own key and SSH client", or you can add |
|
I've expanded the shell integration documentation to note the limitations of our SSH integration: ghostty-org/website#454 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
Using
shell-integration-features=ssh-terminfo, ssh-envin the Ghostty config doesn't work when connecting to an AWS EC2 instance. After connecting to the instance the terminal is broken, e.g. backspace key types a space, until I manually setTERM=xterm-256colorI have seen #5773 which was entirely unhelpful and dismissive, closed as if there was a solution despite it not working.
Expected Behavior
The ghostty configuration that is supposed to handle the TERM env variable for me should work as expected.
Actual Behavior
TERMis set toxterm-ghosttyeven whenshell-integration-features=ssh-envdespite the documentation at https://ghostty.org/docs/help/terminfo#configure-ssh-to-fall-back-to-a-known-terminfo-entry claiming this will setTERMtoxterm-256colorReproduction Steps
envnote thatTERM=xterm-ghosttynotTERM=xterm-256colorGhostty Logs
No response
Ghostty Version
OS Version Information
Ubuntu 24.04
(Linux only) Display Server
Wayland
(Linux only) Desktop Environment/Window Manager
No response
Minimal Ghostty Configuration
Additional Relevant Configuration
No response
I acknowledge that:
```) on separate lines.All reactions