I created three VMs using Redhat 7.6, VMs are deployed using KVM.
- CNODE1 = 192.168.100.150
- CNODE2 = 192.168.100.151
- STORAGE= 192.168.100.200
- HOST = RHELHOST
Now because i have a habit of using tmux, so that whenever i type "connect" it automatically opens tmux session with Name "0" with 3 windows each one for 1 vm and automatically logins to all the vms. I added this alias in /etc/bashrc
alias connect='tmux new-session -s 0 -d "ssh firstname.lastname@example.org" \; rename-window -t 1 NODE1 \; new-window -n "NODE2" -d "ssh email@example.com" \; new-window -n "STORAGE" -d "ssh firstname.lastname@example.org" \; attach'
when i run alias "connect" it acts strangely , it seems it doesn't read the /etc/tmux.conf even though i tried to explicitly mention it using -f filter and source-file command .
First, it doesn't show status bar, Status Bar only appears when i navigate to some other window. and
lets suppose i try to divide the window of one Node1 ,instead of showing shell of node1 it shows shell of Host.
In tmux.conf i added
set-environment -g 'IGNOREEOF' 1 # for accidental exit But it still exits on first ctrl+d
I will add gif of my above actions