I am a long time xterm user. As a Sys Admin I connect to many, many Linux systems. My practice has been to use XQuartz to connect to a central system from which I can access all the other systems. There in my Linux account I have a bash script which takes a system name for an argument and opens a new xterm and connects with ssh (using keys) to the system I need. Thus with a very few key strokes I can access any of my systems in a new window. I would like to try using iTerm2 but I can't figure out how to start an iTerm on my mac from my remote server. Is this possible? Thank you.


No you can't start iTerm from a remote server.

But then macOS is not XWindows so you would use a different way.

The way is to have the information about all the servers on your Mac

Create a profile for each server in ITerm each one opening a ssh session.

Then to access any system in a new window just open the correct Profile.

To speed things up each profile can be give a different keyboard shortcut.