Problem: I tried Using the Below commands but no use, it only ssh to the machine but not execute the command "bash" after connected to ssh target.
Trails:
Method #1 : gnome-terminal --tab -t "NASIR-QEMU" -e "/bin/bash -c 'ssh -t 10.10.10.1;bash;bash'"
Method #2 : gnome-terminal --tab -t "NASIR-QEMU" -e "/bin/bash -c 'ssh -t 10.10.10.1;bash'"
Method #3 : gnome-terminal --tab -t "NASIR-QEMU" -e "/bin/bash -c 'ssh 10.10.10.1 ;bash'"
Method #4 : gnome-terminal --tab -t "NASIR-QEMU" -e 'ssh -t 10.10.10.1;bash'
Method #5 : gnome-terminal --tab -t "NASIR-QEMU" -e 'ssh -t 10.10.10.1"bash;bash"'
this method#4 #5 closes my open terminal
Note: "a fake IP (10.10.10.1) is entered for posting example only so pls dont get misleaded"
Help is highly appreciated!!!
Thanks
gnome-terminal --tab -t "NASIR-QEMU" -e 'ssh 10.10.10.1'(Provided you have bash or at least some shell set as the login shell on 10.10.10.1. Does everything work if you just runssh 10.10.10.1from your current terminal ?-e 'ssh -t 10.10.10.1 /bin/bash'then, or whichever full path you have to bash on 10.10.101 (Note there's no semicolons, but you need the -t in this case). But the setup of your 10.10.10.1 machine is rather odd if yo need to explicitly run bash, so I suspect there's something else that could trip you up.