F
friend.05
There are 3 servers.
I am on server 1. I need to get some files from server 3. But I dont
have direct access to server 3. I have to go through Server 2.
- From Server 1 I have to Telnet to Server 2
- From Server 2 I can ftp or ssh to Server 3.
I also don't to whole directory from Server 3. I want to read the file
name and then tranfer only selected files from Server 3 to Server 1.
I want to automate this whole process.
Any suggestion how can I do this.??
One method I was trying was:
Use perl telnet module. And the in telnet command I give SSH command
(using Perl SSH module).
I did ls in ssh command (vis telnet command). But now how will get ls
output to viarable.
Once I have file name which I need then I can scp to server 2. And
from there I can ftp to my local server 1.
I am on server 1. I need to get some files from server 3. But I dont
have direct access to server 3. I have to go through Server 2.
- From Server 1 I have to Telnet to Server 2
- From Server 2 I can ftp or ssh to Server 3.
I also don't to whole directory from Server 3. I want to read the file
name and then tranfer only selected files from Server 3 to Server 1.
I want to automate this whole process.
Any suggestion how can I do this.??
One method I was trying was:
Use perl telnet module. And the in telnet command I give SSH command
(using Perl SSH module).
I did ls in ssh command (vis telnet command). But now how will get ls
output to viarable.
Once I have file name which I need then I can scp to server 2. And
from there I can ftp to my local server 1.