Server Fault is a question and answer site for system and network administrators. 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

Question concerning gsh - I could not find the information in the man page or on the developers page:

Is there a way to define a default list of hosts to connect to? I do not want to always use the command line parameter to supply a hosts file, nor list the hosts directly.

share|improve this question
up vote 1 down vote accepted

I don't know gsh, but you can use this, with a list of hosts in the file "myhosts":

gsh $(cat myhosts)

Put this in a shell script or shell alias...

share|improve this answer
Thanks, will try that as fall-back. If nothing better/more detailed arises, I'll accept that as answer. – brandstaetter Oct 9 '09 at 6:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.