Taking security precaution I have changed the SSH access port on my DO droplet. Recently as i have setup the docker Wordpress stack in the droplet an i wanted to keep track the version changes by pushing to git remote repo. Unfortunately i encountered error. xxx@ubuntuxxxx:~/wordpress$ git push origin main -v Pushing to git@github.com:aliaramli/xxx-docker.git ssh: connect to host github.com port 10xx: Connection timed out fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. As we can see I'm using verbose flag to troubleshoot the issue, "-v". Error reported that the server unable to connect with github.com server tru port 10xx (i purposely censored the full port number) to correct the issue i will need to set ssh connection to github server using github supported port which is 22. eg setup of my ~/.ssh/config file Host github.com Port 22 ...
This is a blog that shares tips on Coding, Website, E-Commerce, Windows, Linux and IT related infos.