I am trying to clone repository from remote git. I have shared hosting and I have created new repository in my cPanel.
I have created new pair of ssh keys using ssh-keygen
Then imported key in cpanel from "SSH Access".
To connect from local machine, I have added following commands on git bash
$ eval ssh-agent
Agent pid 1286
$ ssh-add id_rsa_prasad_local
Identity added: id_rsa_prasad_local (PG@DESKTOP-HAFRU7M)
$ git clone ssh://hostcd1m@mywebsitename.com/home/hostcd1m/test
then it is showing error as below
Cloning into 'test'...
ssh: connect to host mywebsitename.com port 22: Connection timed out fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Am I missing anything ?
Domain name was not pointed to server's host name. so if I try to clone with server hostname , I able to clone it successfully.
example :
git clone ssh://hostcd1m@ServerHostName.Net/home/hostcd1m/test
so I pointed my domain name 'mywebsite.com' to server hostname 'ServerHostName.Net'.