# SSH Last edited on 29 Mar 2024 Having trouble with SSH on your Droplet? View solutions for common SSH problems. [How do I change my Droplet's SSH port?](https://docs.digitalocean.com/support/how-do-i-change-my-droplets-ssh-port/index.html.md): Edit your Droplet’s sshd\_config file to change its SSH port. [I lost the SSH key for my Droplet](https://docs.digitalocean.com/support/i-lost-the-ssh-key-for-my-droplet/index.html.md): If you lose the private SSH key you use to log in to a Droplet, you need to re-enable password authentication to recover access. [When I try to log in to SSH I get a Permission Denied error](https://docs.digitalocean.com/support/when-i-try-to-log-in-to-ssh-i-get-a-permission-denied-error/index.html.md): You may be receiving this error for various reasons, including a missing SSH key or incorrect password. [How to Troubleshoot SSH Authentication Issues](https://docs.digitalocean.com/support/how-to-troubleshoot-ssh-authentication-issues/index.html.md): Problems with SSH authentication includes permission denied with SSH keys and passwords. [How to Troubleshoot SSH Connectivity Issues](https://docs.digitalocean.com/support/how-to-troubleshoot-ssh-connectivity-issues/index.html.md): Problems with SSH connectivity include hostname resolution errors and connections being refused or timing out. [How to Troubleshoot SSH Protocol Issues](https://docs.digitalocean.com/support/how-to-troubleshoot-ssh-protocol-issues/index.html.md): Problems during SSH protocol initiation include the client suddenly getting dropped or closed, the client returning errors about cipher negotiation, or issues with an unknown or changed remote host. [How to Troubleshoot SSH Shell Environment Issues](https://docs.digitalocean.com/support/how-to-troubleshoot-ssh-shell-environment-issues/index.html.md): Problems with SSH shell environments include being unable to fork a process, the system reporting it’s not a valid shell, or issues reaching the home directory.