how to close open ftp connections?

17,813

Solution 1

Probably the other clients connect from the same IP. Also, if you want to close a connection, you can always use tcpdrop(1):
$ tcpdrop myhost.net:2353 example.com:ftp

Solution 2

On Linux, and most Unixen IIRC, there is the netstat utility. By itself, it will show you what active connections there are. For example:

$ netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State      
tcp        0      0 foo.example.com:uuidgen     nfs1.example.com:nfs        ESTABLISHED 
tcp        0      0 foo.example.com:ssh         bar.example.com:54993       ESTABLISHED 
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ]         DGRAM                    88654  @/com/ubuntu/upstart

ans do forth.

Share:
17,813
Admin
Author by

Admin

Updated on September 17, 2022

Comments

  • Admin
    Admin almost 2 years

    I use FileZilla, and I thought when a session ended, it automatically closed the ftp connection, but that doesn't appear to have happened because now I'm getting a "530 Sorry, the maximum number of connections (10) for your host are already connected." error. Is there a way to find any open ftp connections and close them from my end? Or, do I have to contact the host?