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?
To disable SFTP access, edit the file /etc/ssh/sshd_config, commenting out the Subsystem SFTP line by prepending a pound sign (#) to it.
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 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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With