# How do I change my Droplet's SSH port? You can change your Droplet’s default SSH port by editing its SSH configuration file. To do this, open the `/etc/ssh/sshd_config` file in a text editor: ```shell nano /etc/ssh/sshd_config ``` Remove the comment hash (`#`) in the `# Port 22` line and then replace the `22` value with your desired port value. In the following example, the `Port` line is uncommented and the `22` value is replaced with `20202`. This makes the Droplet only accessible via SSH using port `20202`. `/etc/ssh/sshd_config` ```shell # The strategy used for options in the default sshd_config shipped with # OpenSSH is to specify options with their default value where # possible, but leave them commented. Uncommented options override the # default value. Include /etc/ssh/sshd_config.d/*.conf Port 20202 #AddressFamily any #ListenAddress 0.0.0.0 #ListenAddress :: ``` After editing the port number, save the file and close it. To implement the changes, reboot the Droplet: ```shell reboot ``` Once the Droplet reboots, you can confirm the changes by logging in to the Droplet using the `ssh` command line tool and its port (`-p`) flag. Use the `-p` flag to specify the Droplet’s new SSH port: ```shell ssh root@use_your_droplet_ip -p use_your_new_port ``` For example, if your Droplet has the IP address `192.88.99.255` and the Droplet’s new SSH port is 20202, you would format the command as `ssh root@192.88.99.255 -p 20202` . A successful login to the Droplet confirms that SSH port has been successfully reassigned. If your login was unsuccessful, you can log in to the Droplet from the [Droplet Console](https://docs.digitalocean.com/products/droplets/how-to/connect-with-console/index.html.md) and troubleshoot the configuration file. ## Related Topics [How do I fix a "system not initialized" error on multi-GPU Droplets?](https://docs.digitalocean.com/support/how-do-i-fix-a-system-not-initialized-error-on-multi-gpu-droplets/index.html.md): Make sure NVIDIA Fabric Manager is running and has the same version number as the GPU drivers. [Why am I getting a Droplet autoscale pool error?](https://docs.digitalocean.com/support/why-am-i-getting-a-droplet-autoscale-pool-error/index.html.md): There may be an issue with the autoscale pool or Droplet configuration, the VPC network’s size, or resource limits on the team or datacenter. [How to Troubleshoot Load Balancer Health Check Issues](https://docs.digitalocean.com/support/how-to-troubleshoot-load-balancer-health-check-issues/index.html.md): Health checks often fail due to firewalls or misconfigured backend server software.