Hi all,
Simple question.
What is the command to ftp to other port, says 55555
Astelnet we can use: telnet IPaddress portNumber right?
What about ftp? Thanks a lot
Hi all,
Simple question.
What is the command to ftp to other port, says 55555
Astelnet we can use: telnet IPaddress portNumber right?
What about ftp? Thanks a lot
check the man page of your ftp client tool.
OK thanks. done.
How about in windows?
here is the help for ftp
Transfers files to and from a computer running an FTP server service
(sometimes called a daemon). Ftp can be used interactively.
FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [-A] [host]
-v Suppresses display of remote server responses.
-n Suppresses auto-login upon initial connection.
-i Turns off interactive prompting during multiple file
transfers.
-d Enables debugging.
-g Disables filename globbing (see GLOB command).
-s:filename Specifies a text file containing FTP commands; the
commands will automatically run after FTP starts.
-a Use any local interface when binding data connection.
-A login as anonymous.
-w:buffersize Overrides the default transfer buffer size of 4096.
host Specifies the host name or IP address of the remote
host to connect to.
Notes:
So. please advice. Thanks
windows ftp client doesn't cut it. if you want, go download an ftp client for windows that support specifying a port number. Or, you can use a programming language such as Perl or Python with their ftp module. those modules allow you to specify connection with a different port. eg Python
#!/usr/bin/env python
import ftplib
server="localhost"
user="anonymous"
password="test@hotmail.com"
try:
ftp = ftplib.FTP()
ftp.connect(server,21) #specify port number when connection
ftp.login(user,password)
except Exception,e:
print e
else:
ftp.cwd("incoming")
ftp.retrlines('LIST')
The open subcommand in Microsoft's version of ftp supports a port number i.e. open host [port].