Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 11-22-2005, 12:44 PM   #1
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
Old 11-22-2005, 01:12 PM   #2
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


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

All times are GMT -5. The time now is 01:24 PM.

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