When I am trying to push to my remote git repository, but it is taking forever and nothing happens. I waited for so long, but push is never getting finished. My OS is Ubuntu
Ensure you're using the right protocol.
Depending on how you have your local configurations set up, you might need to use https to connect. To do so, switch the protocol for the remote repository from the git@github.com:[user]/[repo] protocol to the https://github.com/[user]/[repo].git protocol.
Also, it's worth trying vice versa, if you're unable to use the https protocol. On older configurations, the older git@github user authentication will often allow you to connect as a fall back.