![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| rsh help - getting the output of remote script to local server. | aster007 | Shell Programming and Scripting | 5 | 03-07-2009 10:14 AM |
| Transfer file from local unix server to remote server | indira | Shell Programming and Scripting | 2 | 05-03-2007 06:35 AM |
| Transfer file from local unix server to remote server | indira | HP-UX | 2 | 05-02-2007 05:15 PM |
| FTP multiple files from remote server to local server | berlin_germany | Shell Programming and Scripting | 2 | 12-20-2006 03:24 AM |
| executing a remote location script from local server | srivsn | Shell Programming and Scripting | 2 | 02-28-2006 03:16 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Can a script runned in local server access remote server?
Hi,
Im creating a script that is supposed to run commands on remote server using sftp. My script is as below: #!/bin/ksh sftp remote_server mypassword cd /u08/mydir/allfiles mget * .. But this is what I got when I runned the script: Connecting to remote server... Password: It hangs at Password: without inputting the "mypassword" that I specied in the script. Anything that I can do to fix this? Please help ![]() |
|
||||
|
The password can't be entered as in the sample script.
Depending on your sftp client, you can probably do something like: sftp username:password@remote_server Even better would be to create an ssh key and add it to the authorized_keys file in .ssh on the server. Then you wouldn't need a password at all. |
|
||||
|
Hi ShawnMilo..
Could you please explain more about authorized_keys file in .ssh on the server? Which server do u mean, the local or remote? and where do i find the .ssh file ? I tried to do sftp username assword@remote_server but this is not working.Thanks a bunch |
|
||||
|
Do some searching on this forum -- I'm sure it has been discussed a hundred times. Here are the keywords you want to search for:
authorized_keys ssh-keygen |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|