$ ssh -V ssh: SSH Tectia Server 4.4.8 on sparc-sun-solaris2.8 Build: 21
Is there a way to spawn another ssh window using the command line while executing multiple commands? An example may be:
$ ssh -l hostname [scsu - username; password; cd dir1/dir2/dir; . ./environment; bash; PS1='Window1$']
Have the above open a new window?
asked Sep 03 '10 at 17:28
On Unix platforms Tectia does not provide a terminal window as such, so this would be up to the terminal program that you are using.
For example using xterm, you could do it something like:
This opens 3 terminal windows to host1, host2 and host3
However if you try to pass arguments to those ssh sessions those will be executed as remote commands and then the connection will be closed. AFAIK it is not possible to pass them in a way that they would be executed before your terminal session.
I'm no sure if this answers your question.
answered Sep 06 '10 at 05:59