Automatic ssh
Hi all,
there are 50 systems..with ips 192.162.1.1 to 50.. each has given in dns as a station.. i.e station1 to station50.. now i want a shell script for ssh...that is whn i execute commad..directely it shld ask password for that station.. say 1.sh then it shld ask enter ur station number ..then if i give sation number it shld ask for password.. plz help me |
Can you detail *why* you want this? it's probably a lot easier to work out how to achieve what you want if we know your end goal... from what you've explained, there seems to be nothing more than what ssh would directly give you anyway. i can't see anything "automatic" in this..
btw, should is spelt "should" not "shld", you aren't typing a txt msg... |
Code:
#!/bin/bash |
well there was certainly no mention of port numbers anywhere in the question...
|
Quote:
|
i'm still lost as to how this is actively useful... you run "myscript 23" instead of "ssh station23" ?? how's that useful?
|
Quote:
Code:
for i in $(seq 1 50); do |
All times are GMT -5. The time now is 07:48 PM. |