LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 11-22-2005, 01:44 PM   #1
prashant_1012
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Rep: Reputation: 0
Lightbulb ssh or telent auto login


Dear Gurus,

I need a script(any script).

My requirement is like this

i have to login on to servers using ssh or telnet. and then run a script myscript with 2 paramets 1 is 6 digit number and one is Userid.

telnet or ssh server1

login: myid
password: mypassoword

$myscript 111111 userid1 ; myscript 11111 userid2

i have to do this on frequet basis on various servers

i want to automate this work using a script.

where the script can be a html or asp or normal perl script.

i have to paste only the servers , username and the ticket number.

the script shoul bale to excute the above commands on the servers.

Thanks in advance
Prashant
 
Old 11-22-2005, 02:12 PM   #2
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
You need to setup ssh-keys to avoid password prompt here is an example of script that login to given IP with and dig out remote server information based upon this script you can create your own script http://bash.cyberciti.biz/monitoring...tion.bash.html
 
  


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
telent ttumelty Linux - Networking 4 11-10-2005 10:05 PM
auto ssh, and the rsync Swakoo Linux - Networking 5 08-25-2005 07:00 AM
adminstrator login while auto-login is on? joshknape Linux - General 5 07-19-2005 05:51 AM
Auto-Ban in SSH damicatz Linux - Security 3 04-23-2005 08:45 PM
Auto-login and auto-restart... TankerKevo Red Hat 2 10-04-2003 08:52 AM


All times are GMT -5. The time now is 05:10 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration