Skip to main content

SSH & SCP works, but not SFTP

Comments

5 comments

  • cPanelMichael
    Hello :) Have you tried using an alternative SFTP client such as FileZilla, or just using it from the command line, to determine if the issue is isolated to WinSCP? Thank you.
    0
  • domeneas
    Hello, I have now and it does not work and I get an exitcode 127. Does the "SubSystem" line also have to be in ssh_config or just sshd_config? Anything in ssh_config I should be looking for?
    0
  • cPanelMichael
    That line should exist in /etc/ssh/sshd_config, but you should not have to add it in because it's used by default. Do you have any firewall rules enabled that could be restricting access? Thank you.
    0
  • domeneas
    Sorry for the late reply. Not that I am aware of, is there an easy way to check iptables specifically for something on port 22 that would block SFTP? I would think it's fine since SCP works, but what do I know.
    0
  • cPanelMichael
    You could install a firewall management utility such as CSF to more easily manage your firewall rules. Otherwise, feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0

Please sign in to leave a comment.