Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

when i am logged into my server via SSH how can i spawn many ssh terminals? is there a xterm command for this?

share|improve this question
    
Yes, the command is "xterm&". – user31752 Nov 25 '10 at 23:37
up vote 1 down vote accepted

Try using screen

Or just open up another terminal and ssh into the server again.

share|improve this answer
    
yes it is indeed screen i have to use. i wish you had elaborated a wee more. i found what i was looking at: cyberciti.biz/tips/… although i was looking to pop up more terminals on gnome, it does still does the job – sterz Nov 25 '10 at 21:48

Use screen for this. First, create a startup script for screen like the following:

screen ssh host1
screen ssh host2
... 
screen ssh hostN

Then start screen with:

screen -c startup_script

You probably should use ssh-agent to have password less logins for ssh sessions.

share|improve this answer

terminator can do miracles. Prepare a layout with the number of terminals you want, and call terminator with the -l argument, eg.:

terminator -l mylayout

You can also use it on your workstation and spawn as many ssh sessions you want.

Previously, i would have use clusterssh for that purpose, but terminator is so easier to deal with window placement

share|improve this answer

Use ctrl-alt-F2 to get to a new console login. Log in and type "startx -- :1" and it will start X in a new session. You can now go back to you old X session(:0) by using ctrl-alt-F7 and your newly created session by using ctrl-alt-F8. FYI, the console/X corresponding function keys are F1==F7, F2==F8, F3==F9 etc.

You can start a third X session by using ctrl-alt-F3, logging in and typing "startx -- :2". This session will be on F3/F9. All that is assuming you haven't changed any of the mingetty settings in /etc/inittab

Hope this helps you.

share|improve this answer

Type "xterm&" to launch a new terminal already logged into the remote computer, displaying on the local display.

share|improve this answer

you could create a script called "myxterms" or something like that.. have it startup when you start X. This would spawn 5 xterm:

---CUT---

#!/bin/sh

for i in seq 1 5

do

xterm &

done

--- CUT ---

or if you want to spawn multiple ssh connections to different hosts in different xterms you could do:

--- CUT ---

#!/bin/sh

xterm -e ssh -l username1 myhost1 &

xterm -e ssh -l username2 myhost2 &

xterm -e ssh -l username3 myhost3 &

xterm -e ssh -l username4 myhost4 &

--- CUT ---

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .