I Set up git server on an remote instance with git init --bare in directory named stockwidgets.
Also, set up ssh with remote key access correctly.
ssh access works as follows:
---------------------------------------------
$ ssh -i ~/.ssh/keys/gitKey.pvt git@www.stockwidgets.com
Last login: Sat Jan 26 22:43:10 2019 from toroon3642w-lp130-01-70-27-142-166.dsl.bell.ca
[git@ip-172-31-8-112 ~]$
---------------------------------------------
So ssh access works from my local PC, however???
Also the repository exists in the home directory as follows:
[git@ip-172-31-8-112 ~]$ ls
stockwidgets
------------------------------------------
The git remote is set correctly as:
git remote -v
origin ssh://git@www.stockwidgets.com/stockwidgets (fetch)
origin ssh://git@www.stockwidgets.com/stockwidgets (push)
however remote git commands fail as follows:
$ git fetch
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
The repository does exist as I can use it on the remote.
Access has to be the issue through ssh git.
Lost sole .....