Using SSH and TMUX
Symptom
As of December 2022, TMUX is not supported. For official TMUX support, please upvote the following Enhancement Request.
Enhancement Request FAQ:
Environment
9.9;9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5;12.6;14.6 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM) Central Policy Manager (CPM) Unix Plug-in
Cause
While the SSH connection may be successful while using Option (1) or (2) below, the Process/Prompts files may not support a specific workflow. TMUX introduces a lot of control characters in the prompts returned from the target system, so it is very likely that the existing process and prompts files will not function with TMUX, until it is officially supported by CyberArk. If the SSH connection is successful but a CPM operation fails, this will likely require a custom plugin even after the SSH client can successfully connect.
Resolution
The problem appears to be that TMUX is expecting a TERM to be set and will not work if it is not passed by the SSH client or defined some other way. As of December 2022, there is currently no documented way to set the TERM on the CPM side for the Renci SSH.net client. However, we have found some options that could work for setting it from the CPM side with plink, or from the host side.
Option (1)
With this option, you can connect over SSH using Plink assuming TMUX is set as the shell. pLink will use xterm, as long as TPC is set to use pLink in the process file.
- Add "UsePlink=yes" in the [parameters] section of the process file for it to be effective.
Create a Process file | Idira Docs
Option (2)
With this option, both plink and Renci SSH.net were able to successfully connect. On the target system define a default value for TERM.
- Edit: (/etc/environment)
- Add: TERM="xterm"