Azurel
Silver Pleskian
- Server operating system version
- AlmaLinux 9.8
- Plesk version and microupdate number
- 18.0.80#1
After upgrading my server from AlmaLinux 8 to AlmaLinux 9, non-root users could no longer log in via WinSCP (SFTP). Root login via SSH and SFTP continued to work fine. The error in WinSCP was:"Cannot initialize SFTP protocol. Is the host running an SFTP server?" During the upgrade, Leapp added this line to the top of /etc/ssh/ sshd_config:
in "/etc/ssh/ sshd_config" leapp added:
I created a new override file "/etc/ssh/ sshd_config.d/00-plesk-sftp.conf" containing:
My questions:
1. Is creating this custom config file the correct/recommended solution on AlmaLinux 9 with Plesk, or is there a official Plesk-native way to fix this?
2. Should the Include /etc/ssh/ sshd_config.d/*.conf line added by Leapp remain in sshd_config permanently?
@Sebahat.hadzhi its here not allowed to write here the text "/etc/ssh/ sshd_config" without space? "I get Failed to load resource: the server responded with a status of 403 ()" with reason:
in "/etc/ssh/ sshd_config" leapp added:
# Added by leapp during upgrade from RHEL8 to RHEL9
Include /etc/ssh/ sshd_config.d/*.conf
I created a new override file "/etc/ssh/ sshd_config.d/00-plesk-sftp.conf" containing:
After executing "systemctl restart sshd", SFTP logins for domain users started working again.Subsystem sftp internal-sftp
My questions:
1. Is creating this custom config file the correct/recommended solution on AlmaLinux 9 with Plesk, or is there a official Plesk-native way to fix this?
2. Should the Include /etc/ssh/ sshd_config.d/*.conf line added by Leapp remain in sshd_config permanently?
@Sebahat.hadzhi its here not allowed to write here the text "/etc/ssh/ sshd_config" without space? "I get Failed to load resource: the server responded with a status of 403 ()" with reason:
This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.