Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux how to start "sftp-server"? [closed]

I'm not very familiar with it but there is installed openssh/sftp-server (by a vendor before) on RHEL and it was well running before i reboot the server. Then when i check after rebooted:

# ps aux | grep ftp

No sftp is running but sshd is.

So how do i do to have this sftp running please?

like image 292
夏期劇場 Avatar asked Apr 01 '13 10:04

夏期劇場


People also ask

How stop SFTP service in Linux?

To disable SFTP access, edit the file /etc/ssh/sshd_config, commenting out the Subsystem SFTP line by prepending a pound sign (#) to it.

How can I tell if SFTP server is running on Linux?

When the AC functions as an SFTP server, run the display ssh server status command to check whether the SFTP service is enabled on the AC. If the SFTP service is disabled, run the sftp server enable command in the system view to enable the SFTP service on the SSH server.

How do I launch SFTP?

How to Connect to SFTP. By default, the same SSH protocol is used to authenticate and establish an SFTP connection. To start an SFTP session, enter the username and remote hostname or IP address at the command prompt. Once authentication is successful, you will see a shell with an sftp> prompt.


2 Answers

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
like image 78
Pedro Bezunartea López Avatar answered Sep 23 '22 18:09

Pedro Bezunartea López


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.

like image 2
Eugene Mayevski 'Callback Avatar answered Sep 23 '22 18:09

Eugene Mayevski 'Callback