How do I know if FTP server is running Ubuntu?
Answer
6 Answers. You can run sudo lsof to look at all the open files (which includes sockets) and find out which application uses TCP port 21 and/or 22. But of course with port number 21 and not 22 (21 for ftp). Then you can use dpkg -S <binary> to see what package is providing it.
Answer
6 Answers. You can run sudo lsof to look at all the open files (which includes sockets) and find out which application uses TCP port 21 and/or 22. But of course with port number 21 and not 22 (21 for ftp). Then you can use dpkg -S <binary> to see what package is providing it.