![]() |
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 |
| Problem in connecting TCP services between 2 Solaris Servers | neel.gurjar | SUN Solaris | 36 | 08-15-2008 07:21 PM |
| Connecting to remote unix server using java? | developncode | Shell Programming and Scripting | 1 | 05-02-2008 02:32 PM |
| connecting to remote db from unix script | DILEEP410 | Shell Programming and Scripting | 8 | 09-07-2007 05:56 AM |
| connecting servers | parmeet | UNIX for Advanced & Expert Users | 0 | 01-25-2007 05:51 AM |
| connecting servers | parmeet | UNIX for Dummies Questions & Answers | 1 | 01-23-2007 12:48 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Connecting to remote servers
Please advise,
The previous thread asked about the automated transfer of files between two servers. The question is - is there any way of encrypting the password within the script or is it a matter of setting the permissions settings on the script so that it can only be executed and possibly not read. Does the etc/hosts file come into play when setting up such connections? Previous solution - note the username and password are visable You may modify few of lines before running. #!/bin/ksh #Modify these three lines USER=your_login_name PASS=your_password HOST=THE_DESTINATION_IP FTPLOG=LOG_FOR_YOUR_REFERENCE ftp -ivn << EOF > $FTPLOG 2>&1 open $HOST user $USER $PASS #If the file is binary, change it from 'asc' to 'bi' asc #Modify this line cd /DESTINATION_PATH put fbdemo.dat bye EOF Then you can put this script in crontab for auto run. I will give you another post for interactive because you may think that it has a security issue on password shown in a script. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|