I have a CentOS 5.5 server. How can I get a list of all the FTP users on the server using SSH?
First of all, there is no matter if you're doing this locally or remotely, since you will have shell access during the opened session anyway. If you want to just execute a single command on the remote machine and disconnect, you can specify it within quotes:
Nevertheless, you have few options to list all users within specific group:
Using a home-brew script, which you can adapt to your own needs:
This script been ripped from here.
In centos5, you're probably using vsftpd. See Logged on users in vsftpd