login about faq

$ 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

Kevin%20Stevens's gravatar image

Kevin Stevens

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:

xterm -e "ssh host1" & xterm -e "ssh host2" & xterm -e "ssh host3" &

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

Roman's gravatar image

Roman ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Sep 03 '10 at 17:28

Seen: 5,127 times

Last updated: Apr 04 '11 at 13:22

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.