![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Can you post the ssh command string you use in the script?
|
|
#3
|
||||
|
||||
|
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.
|
||||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|