SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FTP connection thru SSH tunnel

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FTP connection thru SSH tunnel
Author Message
Andre



Joined: 09 Jan 2004
Posts: 7

Post FTP connection thru SSH tunnel Reply with quote

Hi

We are opening an SSH connection to a ftp server and then we are opening a FTP session to
127.0.0.1 using the SSH tunnel to connect to the remote ftp server. It's all fine and working with normal Ftp software like WS_FTP.
With 24x7 I can't connect the ftp server with the same method.

Mon Feb 09, 2004 9:57 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: FTP connection thru SSH tunnel Reply with quote

In 24x7 you cannot share SSH connections opened using secure Telnet statements with regular FTP operations.
Instead you should use secure FTP statements without Telnet.

To use secure FTP protocol your script should begin with the following

FTPConfig( "FTP Protocol", "SECURE" )

In any case you can still schedule and run your existing SSH/FTP batch jobs.

: Hi

: We are opening an SSH connection to a ftp server and then we are opening a
: FTP session to
: 127.0.0.1 using the SSH tunnel to connect to the remote ftp server. It's all
: fine and working with normal Ftp software like WS_FTP.
: With 24x7 I can't connect the ftp server with the same method.

Mon Feb 09, 2004 10:15 am View user's profile Send private message
Andre



Joined: 09 Jan 2004
Posts: 7

Post Re: FTP connection thru SSH tunnel Reply with quote

: In 24x7 you cannot share SSH connections opened using secure Telnet
: statements with regular FTP operations.
: Instead you should use secure FTP statements without Telnet.

: To use secure FTP protocol your script should begin with the following

: FTPConfig( "FTP Protocol", "SECURE" )

: In any case you can still schedule and run your existing SSH/FTP batch jobs.

I still can't connect to the server. I tried following code
////////////////////////////////////////////////////////////
// 24x7 Scheduler 3.4.16
// Job Template: File replication: Remote directory(ies) on FTP server to local directory(ies)
// Generated on 10-February-2004 9:40
////////////////////////////////////////////////////////////

FTPConfig( "FTP PROTOCOL", "SECURE" )
SyncFTPDir( "REMOTE", "127.0.0.1", "exxxxx", "inixxxxx", &

"/home/cdsips", &

"C:\\Filetranfer\\Files\\CDS", &

True, False, False, False )

Tue Feb 10, 2004 4:54 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: FTP connection thru SSH tunnel Reply with quote

What is the error message?

.
: I still can't connect to the server. I tried following code
: ////////////////////////////////////////////////////////////
: // 24x7 Scheduler 3.4.16
: // Job Template: File replication: Remote directory(ies) on FTP server to
: local directory(ies)
: // Generated on 10-February-2004 9:40
: ////////////////////////////////////////////////////////////

: FTPConfig( "FTP PROTOCOL", "SECURE" )
: SyncFTPDir( "REMOTE", "127.0.0.1", "exxxxx",
: "inixxxxx", &

: "/home/cdsips", &

: "C:\\Filetranfer\\Files\\CDS", &

: True, False, False, False )

Tue Feb 10, 2004 9:32 am View user's profile Send private message
Andre



Joined: 09 Jan 2004
Posts: 7

Post Re: FTP connection thru SSH tunnel Reply with quote

I create a new job from template 'Secure Shell and SecureFTP
Jobs/File Replication:Remote Directory(ies)on FTP server to
local directory(ies)'.
When filling out point 4 'Name of the directory on the FTP server
where source files are located:' and I try to connect the error
message is

Could not connect to server 127.0.0.1.
Service not available. Extended error code: 4

Tue Feb 10, 2004 10:11 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: FTP connection thru SSH tunnel Reply with quote

If you know the directory name please type it in and then finish and run the job.

PS. 127.0.0.1 is your local IP address. Did you enter the correct FTP server name?

: I create a new job from template 'Secure Shell and SecureFTP
: Jobs/File Replication:Remote Directory(ies)on FTP server to
: local directory(ies)'.
: When filling out point 4 'Name of the directory on the FTP server
: where source files are located:' and I try to connect the error
: message is

: Could not connect to server 127.0.0.1.
: Service not available. Extended error code: 4

Tue Feb 10, 2004 10:47 am View user's profile Send private message
Andre



Joined: 09 Jan 2004
Posts: 7

Post Re: FTP connection thru SSH tunnel Reply with quote

: If you know the directory name please type it in and then finish and run the
: job.

: PS. 127.0.0.1 is your local IP address. Did you enter the correct FTP server
: name?

Yes, I have to connect to the localhost to use the SSH tunnel to the FTP server.
When I run the job I get the same error message:

Could not connect to server 127.0.0.1
Service not available. Exteneded error code: 4

Tue Feb 10, 2004 10:59 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: FTP connection thru SSH tunnel Reply with quote

Why not to connect directly to the server?

SFTP statments will create a new conenction/tunel directly to the server. The current implementation does not support resusing an existing connection.
Because you don't have a secure server running locally the connection fails with "Service not available" error.

: Yes, I have to connect to the localhost to use the SSH tunnel to the FTP
: server.
: When I run the job I get the same error message: Could not connect to server
: 127.0.0.1
: Service not available. Exteneded error code: 4

Thu Feb 12, 2004 10:32 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.