kryptco / kr

DEPRECATED A dev tool for SSH auth + Git commit/tag signing using a key stored in Krypton.
https://krypt.co/developers/
Other
1.59k stars 109 forks source link

RFE: Provide an option to disable the terrminal output #291

Open isaacs opened 4 years ago

isaacs commented 4 years ago

I sometimes connect to a server with ssh agent forwarding enabled in order to do development and testing on different operating systems, or have a faster pipe between my dev env and npm/github than my local machine when traveling. To do this, I like to use a tmux -CC session, so that my windows and tabs in my terminal all feel local in iTerm2.

This all works great, but the problem happens when git or ssh operations try to use my local ssh config to connect, and in so doing, trigger some output in the tmux control center session. Because tmux -CC uses ANSI codes to communicate window and pane information, this breaks the session and I get booted.

I've figured out that I can work around this by using this config for the host in question:

  ControlPath ~/.ssh/control-%r@%h:%p
  ControlMaster auto
  ControlPersist 1

And then opening up an initial ssh connection, and a second connection for the tmux -CC session, but it is a bit annoying to have to keep yet another tab open.

It'd be nice if there was a way to tell krssh to just not print any output to the terminal.