On the previous post described add known hosts automatically and this is multiple ssh login with executing the command once logged
the gnome-terminal command is helpful for open the multiple terminal tabs at the same time with --tab option also refers the previous post.
top -c -o %MEM : Executes top command with memory wise displays once logged into the server.
The below command open a new terminal with 2 different tabs and logged into the server.
$ gnome-terminal --tab -e "ssh -t -o StrictHostKeyChecking=no -p 2213 root@192.168.1.101 'top -c -o %MEM'" --tab -e "ssh -t -o StrictHostKeyChecking=no -p 2212 root@192.168.1.101 'top -c -o %MEM'"
Comments (0)