Linux how to start "sftp-server"?
89,290
Solution 1
You only need to add the following line to your /etc/ssh/sshd_config file:
Subsystem sftp /usr/libexec/openssh/sftp-server
or
Subsystem sftp /usr/lib/openssh/sftp-server
Solution 2
sftp subsystem is started on demand if it is enabled in the configuration file of openssh. Check the configuration file (near the end of it) to see whether sftp subsystem is enabled and whether the path to sftp executable is correct.
Comments
-
夏期劇場 over 4 years
I'm not very familiar with it but there is installed
openssh/sftp-server
(by a vendor before) onRHEL
and it was well running before i reboot the server. Then when i check after rebooted:# ps aux | grep ftp
No
sftp
is running butsshd
is.So how do i do to have this
sftp
running please?-
夏期劇場 about 11 yearsIs this simple & straight forward question considered to be closed???
-
Eugene Mayevski 'Callback about 11 yearsthis question is off-topic on StackOverflow.
-
-
ransh over 8 yearsHi, Is it possible to start only sftp server , without the all the ssh server ? How ?
-
Eugene Mayevski 'Callback over 8 years@ransh this question is not programming-related and is off-topic. Also, asking questions in comments, if those questions are not related to the answer itself, is not a good practice. Instead you are welcome to create a new question (but on the proper site).
-
ransh over 8 yearsthanks for the comment, I will act accordingly, Regards.
-
depperm almost 5 yearsI already have this line in
sshd_config
file but it is still not running. How do you restart or reload the service?