Search code examples
linuxportputty

how to change Linux machine listening port on putty?


I hope you all doing well! I am working on my Linux machine and My machine listen on port 3868 now I want to change to 3869


Solution

  • go to your sshd config file, change port and restart ssh service.

    vim /etc/ssh/sshd_config
        Port 3869
    systemctl restart sshd.service