The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-17-2007
Registered User
 

Join Date: Jul 2007
Posts: 53
ssh

hi all
i had to use ssh to access some files on a remote server and the command itself is working fine when used from the command line ,but when i use it as a part of another script (which i ahd to,as no other choice)
its asking me password and when i enter my password,it just doesnt do nuttin and finally exits,can any one tell me what cld be the problem?

pls any kind of adivce is appreciated
Reply With Quote
Forum Sponsor
  #2  
Old 08-22-2007
ADxD_7's Avatar
Registered User
 

Join Date: Aug 2007
Posts: 8
Can you post the ssh command string you use in the script?
Reply With Quote
  #3  
Old 08-22-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,328
You will need to setup key-based authentication if you want to use ssh commands in scripts. This allows ssh to connect to the remote system without a password. You can find out how to do that through a simple google search. Here's a decent one.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:51 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0