The server rejected SFTP connection, but it listens for FTP
This issue have made me mad. I have check all the way to find the solution but no one gives the perfect solution for this. Finally i have found the solution and cause of this issue. Below i have mentioned clearly.
Cause of this issue is limitation of session. For this you have to remove the session or increase the session. For me I can't remove running session so i have done increasing the session. Below i have mentioned the steps.
the location of session limit is /etc/security/limits.d/20-nproc.conf
in this root have unlimited soft session. we can assign or increase the user session limit on this session.
This issue have made me mad. I have check all the way to find the solution but no one gives the perfect solution for this. Finally i have found the solution and cause of this issue. Below i have mentioned clearly.
Cause of this issue is limitation of session. For this you have to remove the session or increase the session. For me I can't remove running session so i have done increasing the session. Below i have mentioned the steps.
the location of session limit is /etc/security/limits.d/20-nproc.conf
in this root have unlimited soft session. we can assign or increase the user session limit on this session.