Ssh – New terminator window on remote server

gnome-terminatorsshterminal

Is there a way to open a new terminator pane on a remote server when connected by ssh?

I am looking for something similar to what can be done (according to this answer) by tmux but using terminator instead. I want to ssh to a remote machine using terminator, and then if I split the terminator window, the new shell will open on the remote machine.

Best Answer

The answer to this problem for terminator and remote systems is to create a terminator profile, where the command it runs 'as a login shell' is the SSH connection string used to access the remote server. It is prefered to have SSH key based authentication or openssh controlmaster/controlpath setup to have connection sharing.

Exerpt of a terminator config for this:

~/.config/terminator/config

[profiles]
[[default]]
 scroll_on_output = False
 exit_action = restart
 scrollback_infinite = True
[[remotehost]]
 use_custom_command = True
 exit_action = restart
 custom_command = ssh user@remotehost

And simply run terminator -p remotehost to use this profile. Each time you 'split' terminals, it uses this profile and thus opens a new SSH connection.

For ssh controlmaster, see: http://www.debian-administration.org/articles/290

Related Question