Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh kitten fails when $KITTY_PUBLIC_KEY contains a backtick (`) #5496

Closed
morgan-greywolf opened this issue Sep 9, 2022 · 0 comments
Closed

Comments

@morgan-greywolf
Copy link

morgan-greywolf commented Sep 9, 2022

When the value of $KITTY_PUBLIC_KEY contains a a backtick (`), and the remote server executes bootstrap.sh, the following error is printed and the shared remote connection drops:
: 8: /home/user/.kitty-ssh-kitten-untar-4wL3BHIP7aML/data.sh: Syntax error: Unterminated quoted stringre

the second line of /home/user/.kitty-ssh-kitten-untar-4wL3BHIP7aML/data.sh on the remote server ends up attempting to set KITTY_PUBLIC_KEY, but the backtick is not properly escaped for bash/dash.

This is the contents of data.sh:

export KITTY_PUBLICexport COLORTERM="truecolor"
export KITTY_PUBLIC_KEY="1:E$H(!Q5w-${iAV1ADIS{Bjb^7>N3qSZ~Ie2a5Q\`~"
export KITTY_REMOTE="if-needed"
export KITTY_SHELL_INTEGRATION="enabled"
export KITTY_SSH_KITTEN_DATA_DIR=".local/share/kitty-ssh-kitten"
export KITTY_WINDOW_ID="28"
export TERM="xterm-256color"
export WINDOWID="100663310"_KEY="1:E$H(!Q5w-${iAV1ADIS{Bjb^7>N3qSZ~Ie2a5Q\`~"
export KITTY_REMOTE="if-needed"
export KITTY_SHELL_INTEGRATION="enabled"
export KITTY_SSH_KITTEN_DATA_DIR=".local/share/kitty-ssh-kitten"
export KITTY_WINDOW_ID="28"
export TERM="xterm-256color"
export WINDOWID="100663310"```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant