CLI to check FTPS Server Connection ?

TonyJK 881 Reputation points
2022-03-29T05:50:37.63+00:00

Hi,

We have set up a FTPS Server (IIS on Windows 2016 Server). Instead of using FTP Client (Like: FileZilla), is there any CLI we can check whether it is running properly ?

Can we try

  1. Ping it - DNS Resolution
  2. telnet servername.domain.com ?

For telnet, do we need to specify the port ? Should it be Port 20 or 21 ? Is there anyway to check SSL ?

Thanks

Windows development Internet Information Services
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce Zhang-MSFT 3,771 Reputation points
    2022-03-30T05:24:59.877+00:00

    Hi @TonyJK ,

    When you create a ftp site, IIS will ask you set port. If you don't set it, the default port is 21. If you choose FTPS protocal, the default port is 22.
    You need to specify the port in telnet command, like telnet servername.domain.com 21.

    Windows provides FTP command line for remote client test connection.

    C:\>ftp <ServerName>  
    Connected to <ServerName>.  
    220 <ServerName> Microsoft FTP Service (Version 4.0).  
    User (<ServerName>:(none)): anonymous  
    331 Anonymous access allowed, send identity (e-mail name) as password.  
    Password:  
    230 Anonymous user logged in.  
    ftp>  
    

    Common command line statements also apply to ftp viewing and modifying folders.

    • dir View the list of files and folders.
    • cd Change to a different folder.
    • get, put Copy files.
    • by End the FTP session.

    More FTP command line can refer to this docs.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Bruce Zhang


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.