sftp-server is not intended to be called directly, but from sshd(8) using the Subsystem option.
The sftp (SSH File Transfer Protocol) subsystem allows the copying of files between remote server and host workstation using the ssh daemons encryption system for security. Secure FTP and Secure copying are covered a little lower.Subsystem sftp /usr/libexec/openssh/sftp-server
sftp prompts for a password, and on successful authentication, presents a shell with an sftp> prompt. Once in the sftp shell, you can run commands similar to those available on FTP, such as cd, lcd, ls, chmod, chgrp, get, put, rename, and rmdir. You can end the session by typing exit at the prompt.
It looks like you're new here. If you want to get involved, click one of these buttons!