LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-13-2013, 07:59 AM   #1
jenobel
LQ Newbie
 
Registered: Feb 2013
Posts: 1

Rep: Reputation: Disabled
please say how to put ssh to 10000 server by a single shell program


please say how to put ssh to 10000 server by a single bash shell script
 
Old 02-13-2013, 08:00 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
can you please explain this in more than one sentence? This makes very little sense.
 
Old 02-13-2013, 09:55 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,316

Rep: Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878
Quote:
Originally Posted by jenobel View Post
please say how to put ssh to 10000 server by a single bash shell script
Ok. You write a script to do what you want.

Do you need help writing one? If so, post what you've written/tried and tell us where you're stuck, and we can help. If you mean you want to change the port SSH listens on to 10000, then read the man page for sed, and replace the current port line with one that you want in the sshd_config file, and restart ssh.
 
1 members found this post helpful.
Old 02-13-2013, 10:17 AM   #4
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 981
Blog Entries: 2

Rep: Reputation: 235Reputation: 235Reputation: 235
There's already a program called "fanout" http://www.stearns.org/fanout/README.html
 
Old 02-13-2013, 10:22 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
right so tbone things 10000 is a port number, linothingy things it means 10000 remote systems.... anyone else want to interpret it differently?
 
Old 02-13-2013, 10:50 AM   #6
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
10000 users of same server or 10000 different servers?
Question looks more curiosity rather than necessity.
 
Old 02-13-2013, 11:21 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,316

Rep: Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878
Quote:
Originally Posted by pavi_kanetkar View Post
10000 users of same server or 10000 different servers?
Question looks more curiosity rather than necessity.
Yes, we've asked this before, thanks. Still waiting for the OP to clarify things.
 
Old 06-14-2013, 12:39 PM   #8
bekzot89
LQ Newbie
 
Registered: Jun 2013
Posts: 1

Rep: Reputation: Disabled
I have the same question here. Write a quick script that will SSH connect to 10,000 servers and get “uptime"?
Thanks,
 
Old 06-14-2013, 12:48 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,316

Rep: Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878
Quote:
Originally Posted by bekzot89 View Post
I have the same question here. Write a quick script that will SSH connect to 10,000 servers and get “uptime"?
Thanks,
No...YOU write a 'quick script' to do what you want. We're not going to write scripts for you, anymore than we wrote them for the original user. Write your own script, or use the existing tools mentioned in this thread. If you're stuck, post what you've written so far, and we will be glad to HELP you.
 
Old 06-14-2013, 01:26 PM   #10
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,461

Rep: Reputation: 1368Reputation: 1368Reputation: 1368Reputation: 1368Reputation: 1368Reputation: 1368Reputation: 1368Reputation: 1368Reputation: 1368Reputation: 1368
Oh shucks TB0ne, there I was hoping to get 10000 IP addresses of servers with open SSH ports. Any network with an admin having to ask this question has got to be fair game.
Maybe we need a new Members Choice category, "Most Fraught Question of the Year"?
 
Old 06-14-2013, 02:00 PM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,316

Rep: Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878
Quote:
Originally Posted by allend View Post
Oh shucks TB0ne, there I was hoping to get 10000 IP addresses of servers with open SSH ports. Any network with an admin having to ask this question has got to be fair game.
Maybe we need a new Members Choice category, "Most Fraught Question of the Year"?
You're right...I apologize for spoiling anyones fun.
 
Old 06-14-2013, 03:10 PM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Is that really necessary? Two newbies to LQ come here and ask a question. LQ is always friendly to newbies. Shouting at them or making jokes is not appreciated, please be on-topic and help the newbies to ask their question in a proper way instead.
I don't think that I have to teach two long time members about the rules.
 
2 members found this post helpful.
Old 06-15-2013, 01:18 PM   #13
cbtshare
Member
 
Registered: Jul 2009
Posts: 619

Rep: Reputation: 42
I dont think fanOut would work for 10000 servers as you would have to input 10000 ip addresses within the command line .I dont see where it reads from files.So I think the best way is a script.Show what you have and we'll help.
 
Old 06-15-2013, 06:34 PM   #14
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,667
Blog Entries: 12

Rep: Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894
I have heard several sysadmins mention ClusterSSH as a tool they find indispensable for administering multiple machines.

http://sourceforge.net/projects/clusterssh/

I've never had occasion to use it, but it might be worth a look.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to make ssh without password from mulitple server to single server by deepak_message Linux - Server 5 08-26-2012 01:03 PM
Is it okay change port login ssh >10000 ??? b-RAM Linux - Security 12 09-01-2010 05:00 PM
UpArrow/Backspace not working for shell-like program over ssh ShiningMasamune Linux - Software 4 04-06-2009 01:58 PM
LXer: Parallel SSH execution and a single shell to control them all LXer Syndicated Linux News 0 10-30-2008 02:20 PM
how to put a shell call in a C/C++ program? Hano Programming 8 05-19-2002 03:26 PM


All times are GMT -5. The time now is 01:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration