If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Script to loging without putting Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-02-08, 07:50
gohappy gohappy is offline
Registered User
 
Join Date: Apr 2008
Posts: 24
Cool Script to loging without putting Password

I am having a script which ask for password for unix box during login....

I need to make in such a way that it willn't ask for password for everytime during login. As I am having many servers and to run many scripts.When I will run this script it will do ssh to other Unix boxautomatically without asking for username and password.

for i in user1@10.116.112.16 ;do
echo "ENTER UNIX PASSWORD FOR SERVER $i AT THE PROMPT"
ssh $i
done;


Pls suggest me.............


Thanks,
Gohappy
Reply With Quote
  #2 (permalink)  
Old 07-02-08, 08:37
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,452
Set up public key authentication on the servers.
Reply With Quote
  #3 (permalink)  
Old 07-05-08, 20:08
sco08y sco08y is offline
Registered User
 
Join Date: Oct 2002
Location: Baghdad, Iraq
Posts: 697
Hit google for "setting up ssh with a public key"
Reply With Quote
  #4 (permalink)  
Old 07-07-08, 00:19
gohappy gohappy is offline
Registered User
 
Join Date: Apr 2008
Posts: 24
Thanks scoOy..........
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On