Skip to main content

SSH Port change problem for SFTP

Comments

6 comments

  • HostSane
    When you are changing the SSH the port to some different port, make sure you have opened that port in firewall, that is either iptables or CSF and that should fix the issue.
    0
  • Eminds
    you will need to tweak the firewall configuration on your server in order to make sure that the server listens on new SSH port.
    0
  • ronaldst
    Without knowing for sure it appears reasonable to think your new port is blocked by the firewall. Are you running CSF? Shell access is required for the user you try to login with. By default root got SSH access if not configured otherwise. SFTP uses the same port as SSHD.
    0
  • cPanelLauren
    As suggested already here you need to ensure the new port is added in the firewall, you also need to ensure that you restart the sshd service once you modify the port.
    0
  • Alien Data - Josh
    Thank you for the reply's. Apparently I didn't set to get notified of reply's. I will check to see if it is a firewall issue. I didn't setup a "server" firewall but it may still set it up automatically. I will report back with my findings. Thank you for the feedback.
    0
  • Alien Data - Josh
    I installed the CSF and changed the port. And then it's like magic it all works! :) Thank you everyone for the help!
    0

Please sign in to leave a comment.