EXIT Syntax: exit FTP Command Index SFTP Command Index The EXIT command closes the connection to the server.