This is a discussion on Linux UNIX SFTP in a Shell Script within the Shell scripting forums, part of the Development/Scripting category; Hello, Here i have a use case........... I have some 3 different host machines with different instancesin each host(For eg. ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
Hello,
Here i have a use case........... I have some 3 different host machines with different instancesin each host(For eg. 3 instance in each host).In each instance i have the log files......... I have to copy all the log files from all the instances of hosts and store it in temporary directory or as a single file using sftp........... please let me know how i can do this scripting............ I am new to this shell scripting.......... |
| Sponsored Links | ||
|
|
|
||||
|
1) Generate public / private keys to do passwordless login
Howto Linux / UNIX setup SSH with DSA public key authentication (password less login) 2) Write script as follows Code:
#!/bin/bash scp user@server1:/path/to/file /path/to/local scp user@server2:/path/to/file /path/to/local scp user@server3:/path/to/file /path/to/local |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SSH - Passing Unix login passwords through shell scripts | arulkumarr | Shell scripting | 4 | 08-27-2008 09:22 PM |
| unix shell on windows xp | chiku | Solaris/OpenSolaris | 4 | 03-07-2008 03:17 PM |
| Linux Shell script to mount remote windows share | angelus_kit | Shell scripting | 2 | 09-06-2007 07:18 PM |
| SCP with a bash shell password linux and unix servers | jerry | Networking, Firewalls and Security | 1 | 06-09-2007 05:53 PM |
| How to get free shell Linux and UNIX account for friends | jerry | Shell scripting | 0 | 06-09-2007 01:57 AM |