SFtp connect - Connection Closed Gracefully --but no connect

The following Ftp connect to a sftp site has the right port/usrname/password 
[verified thru filezilla], but when I try to connect via TIDFTP -- I get
"Connection Closed Gracefully" upon ftp->Connect();; The ftp properties are 
below the code. I have no other Indy objects on the form. It ocurred to me 
that I may need something for sftp.

ftp->Connect();
if (ftp->Connected())
{
::Sleep(1);
}

object ftp: TIdFTP
  AutoLogin = True
  Host = 'ftp.dailyaccess.com'
  Password ='XXXXX'
  Port = 21
  Username = 'charles.leggette'
  ProxySettings.ProxyType = fpcmNone
  ProxySettings.Port = 0
  Left = 272
  Top = 120
end
0
charles
10/11/2009 2:44:59 AM
embarcadero.cppbuilder.socket 566 articles. 0 followers. Follow

2 Replies
1346 Views

Similar Articles

[PageSpeed] 23

UseTls
http://www.indyproject.org/docsite/html/TIdFTP_UseTLS.html
AUTHCmd
http://www.indyproject.org/docsite/html/TIdFTP_AUTHCmd.html
See also OnTLSNotAvailable Event
http://www.indyproject.org/docsite/html/TIdFTP_OnTLSNotAvailable.html

...
0
Bob
10/11/2009 2:53:23 PM
"charles leggette" <charlesLeggette@earthlink.net> wrote in message 
news:171582@forums.codegear.com...

> The following Ftp connect to a sftp site has the right 
> port/usrname/password
> [verified thru filezilla], but when I try to connect via TIDFTP -- I get
> "Connection Closed Gracefully" upon ftp->Connect();

You did not say which version of Indy you are using.  Secure FTP is only 
supported in Indy 10.

> The ftp properties are below the code. I have no other Indy objects on the 
> form.

That is part of your problem then.  Secure FTP requires that an SSL-enabled 
IOHandler component, such as TIdSSLIOHandlerSocketOpenSSL, be attached to 
TIdFTP and configured properly prior to connecting to the server.

-- 
Remy Lebeau (TeamB)
0
Remy
10/12/2009 4:55:47 PM
Reply:

Similar Artilces:

socket closed
Hi, i have code that looks something like this: my $sock = IO::Socket::INET->new(%args); my $sel = new IO::Select $sock; while (1) { my @ready = IO::Select->can_read(1); foreach my $socket (@ready) { # read a line my $line = <$socket>; &do_stuff_with_line($line); } # end foreach # do other stuff } # end while which works just great, except for when the remote server closes the connection on the socket i've opened. IO::Select seems to return t...

Closing a socket
How do I close a socket that I open like this: transportService = Components.classes["@mozilla.org/network/socket-transport-service;1"] .getService(Components.interfaces.nsISocketTransportService); transport = transportService.createTransport(null,0,host,port,null); I can't work out where to find this information. I discovered http://lxr.mozilla.org/seamonkey/source/netwerk/base/public/nsISocketTransportService.idl which I think means that my transportService variable only has one function createTransport(), so I'm assuming that shutting it down is do...

Probably dumb question about IO::Socket::INET and "how-to-close-instances-of-socket-handles"
Hi there! To make it short: I create a socket with, for example, $server=IO::Socket::Inet->new(bla) I then accept various connections with $client = $server->accept() (making use of the IO::Select module to find out if someone tries to connect to the socket btw.) Finally I want to disconnect people/machines again for various reasons that don't matter. I've tried $client->close and $client->shutdown, but this results in errors, and also shutdown($client), what also results in an error, and finally close ($client), which does not result in an error, ...

superreview cancelled: [Bug 282732] Socket.close needs to interrupt threads blocked in I/O : [Attachment 178193] read/write/close thread protection
Wan-Teh Chang <wtchang@redhat.com> has cancelled glen beasley <glen.beasley@sun.com>'s request for superreview: Bug 282732: Socket.close needs to interrupt threads blocked in I/O https://bugzilla.mozilla.org/show_bug.cgi?id=282732 Attachment 178193: read/write/close thread protection https://bugzilla.mozilla.org/attachment.cgi?id=178193&action=edit ...

superreview cancelled: [Bug 282732] Socket.close needs to interrupt threads blocked in I/O : [Attachment 179128] SSLServerSocket and SSLSocket protection for close methods
Asa Dotzler <asa@mozilla.org> has cancelled glen beasley <glen.beasley@sun.com>'s request for superreview: Bug 282732: Socket.close needs to interrupt threads blocked in I/O https://bugzilla.mozilla.org/show_bug.cgi?id=282732 Attachment 179128: SSLServerSocket and SSLSocket protection for close methods https://bugzilla.mozilla.org/attachment.cgi?id=179128&action=edit ...

superreview requested: [Bug 282732] Socket.close needs to interrupt threads blocked in I/O : [Attachment 178876] read/write/close thread protection
glen beasley <glen.beasley@sun.com> has asked Wan-Teh Chang <wtchang@redhat.com> for superreview: Bug 282732: Socket.close needs to interrupt threads blocked in I/O https://bugzilla.mozilla.org/show_bug.cgi?id=282732 Attachment 178876: read/write/close thread protection https://bugzilla.mozilla.org/attachment.cgi?id=178876&action=edit ------- Additional Comments from glen beasley <glen.beasley@sun.com> the main update to this patch is in the the Java_org_mozilla_jss_ssl_SSLSocket_abortReadWrite method I added comments in the method stating * The jav...

superreview requested: [Bug 282732] Socket.close needs to interrupt threads blocked in I/O : [Attachment 178193] read/write/close thread protection
glen beasley <glen.beasley@sun.com> has asked Wan-Teh Chang <wtchang@redhat.com> for superreview: Bug 282732: Socket.close needs to interrupt threads blocked in I/O https://bugzilla.mozilla.org/show_bug.cgi?id=282732 Attachment 178193: read/write/close thread protection https://bugzilla.mozilla.org/attachment.cgi?id=178193&action=edit ------- Additional Comments from glen beasley <glen.beasley@sun.com> The first call to SSLSocket.close or SSLServerSocket.close will close the socket and release all native resources. Any further calls to SSLSocket.close or SSL...

superreview requested: [Bug 282732] Socket.close needs to interrupt threads blocked in I/O : [Attachment 179128] SSLServerSocket and SSLSocket protection for close methods
glen beasley <glen.beasley@sun.com> has asked Wan-Teh Chang <wtchang@redhat.com> for superreview: Bug 282732: Socket.close needs to interrupt threads blocked in I/O https://bugzilla.mozilla.org/show_bug.cgi?id=282732 Attachment 179128: SSLServerSocket and SSLSocket protection for close methods https://bugzilla.mozilla.org/attachment.cgi?id=179128&action=edit ------- Additional Comments from glen beasley <glen.beasley@sun.com> Reply to comment 9 1) I added support for abortAccept, I also attached a test program for this case. 1a) the isClosed flag does ...

superreview cancelled: [Bug 282732] Socket.close needs to interrupt threads blocked in I/O : [Attachment 178876] read/write/close thread protection
Wan-Teh Chang <wtchang@redhat.com> has cancelled glen beasley <glen.beasley@sun.com>'s request for superreview: Bug 282732: Socket.close needs to interrupt threads blocked in I/O https://bugzilla.mozilla.org/show_bug.cgi?id=282732 Attachment 178876: read/write/close thread protection https://bugzilla.mozilla.org/attachment.cgi?id=178876&action=edit ...

WebBroker Socket Closing
I have a DataSnap WebBroker app using IdHTTPWebbrokerBridge using Delphi XE5. As long as web requests come in one at a time the app works great, but I have a couple methods that may take up to 30 seconds to complete. If web request "A" comes in and is taking 30 seconds to complete, and in the middle web request "B" comes in, which is very fast (<1 sec), then I have a problem when request "A" completes and tries to do a Response.SendResponse (to send a file the user requested) because apparently request "B " closed the socket connection and I'm ge...

How to close ASE gracefully??
Does anyone have a batch script I can run on an NT server that will close ASE 12.0 gracefully and then open it back up? I need to write a batch file that will allow a backup procedure to take place of the server and I want to write a script to shut down and then restart ASE12.0. Any help is a big help... Thanks! JC wrote... > Does anyone have a batch script I can run on an NT server that will close > ASE 12.0 gracefully and then open it back up? I need to write a batch file > that will allow a backup procedure to take place of the server and I want > to write a...

Socket Closed (7503)
Hi. we have an application written in VB6 that connects to ASE 15.0 Express on linux using ODBC. It�s been working fine for a month and and now ASE is rejecting new user connections. We have not changed anything. The Linux is Fedora Core 4 and the server works 24/7 (we never shut it down). The message that we get is "Socket Closed" and the error number is 7503. Any ideas? Thanks, Oliverio The problem was solved. It was caused by a failed dump database. The device in unix lost the permisions and sybase could not write to it. Since the backup process ...

how to find out if a socket is closed
Hi I have two problems. First, there's a common socket. How can i test in perl, if a socket is closed (tcp)? Is there a function for it. I've read the manual, but i found nothing. The second: I have an opened socket, connected to a server (tcp). It sends something like: socket(CGSPSERVER, AF_INET, SOCK_STREAM, $proto) || die; my $oldfh = select(CGSPSERVER); $| = 1; select($oldfh); if (!connect(CGSPSERVER,$sock_peer)) { die; }; send(CGSPSERVER,$ipc_cmd1,0); and want to receive an answer: while ($line = <CGSPSERVER>) { push(@answer, $line); } But it do...

close on exec for sockets
I never liked $^F. You have to set it to a number before you can know what number you'll get, which seems pretty nutty. Seems fundamentally wrong, you nkow? Please remind me again why we're marking regular pipe opens' descriptors as being close on exec? And then, having done that, why we're not also so marking sockets or socketpairish pipes? Enclosed please find a small but probably suprisingly interesting demo of this issue and various others. Tested on OpenBSD and Redhate. I see that GNU make leaks fds compared with BSD make. Harrumph! --tom begin 644 ...

Socket Closed error
We have a production and a test server that both have ASE 12.5.4 running on AIX. A user wants to run some queries in am Access database that uses linked tables to pull data from our Sybase database. The queries run successfully when the tables are linked to production environment. But The user would consistently receive error '[sybase wire protocol driver] Socket Closed'. I checked Sybase error log and found error message 'ksmask__rpacket: Invalid tdslength value ****' were logged at the same time as the user experienced 'Socket Closed' error. I have...

Web resources about - SFtp connect - Connection Closed Gracefully --but no connect - embarcadero.cppbuilder.socket

Connection - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

iMedia Connection: Interactive Marketing News, Features, Podcasts and Video - iMediaConnection.com
If you send more email, you might make more money. Then again, you might destroy your reputation and revenue stream. Here's how to know what ...

HTTP persistent connection - Wikipedia, the free encyclopedia
... tacked on to an existing protocol. If the browser supports keep-alive, it adds an additional header to the request: Following this, the connection ...

MOTHER’S DAY: Facebook Examines Connections Between Moms, Kids
With Mother’s Day on the calendar this coming Sunday, Facebook examined the relationships between mothers and their children on the social network, ...

Paris attacks: Belgium connection probed as terrorist past of Brussels district of Molenbeek under spotlight ...
Prosecutors reveal a growing Belgian connection to the deadly Paris attacks, focusing on a poor Brussels district.

Half of data connections by top 500 Android apps are 'covert' with no effect on user experience
Researchers at the Massachusetts Institute of Technology have discovered that half of the communications connections established by the top free ...

The Direct Connection
... And the people reading my words respond back to me with words of their own. The technology that allows this is powerful but this direct connection ...

Cross-cultural Connections and Exchange: international study is more important than ever
... And, as a minority of ill-intentioned individuals and groups do their best to create divides, we need citizens equipped to create connections ...

Be Goofy, Smile At Your Baby: Protection Begins with Connection, Pediatrician Says
VideoPart 3 of a series Andrew Garner wears silly ties and finds it easy to make a goofy face. These are valuable tools for charming the babies ...

Get ready for live-streamed extreme sports: Seattle startup Sioeye adds 4G connection to action cam
The history of people doing crazy stunts on camera is full of notable achievements. Motorcycle daredevil Evel Knievel jumped over whatever he ...

Resources last updated: 11/27/2015 2:09:15 AM