Unable to Use Git PUSH with AWS AMI "WordPress with LiteSpeed" ?

jed

New Member
#1
Is there anything within the Amazon AWS Machine image "WordPress with LiteSpeed" that may prevent me accessing a Git repository (with a private key)?

- My OLS install works fine, website up and running.

- I can SSH from my local Windows pc to my Ubuntu installation using private keys for user Ubuntu.
ssh ubuntu@host-name

- I can also use WinTCP to access all files on Ubuntu.

On Ubuntu Git was setup as follows:-
sudo mkdir /var/repo
sudo mkdir /var/repo/repo-name.git
sudo chown ubuntu:ubuntu /var/repo/repo-name.git -R
cd /var/repo/repo-name.git
git init --bare


From Windows - showing remote setup correctly
git remote -v
live ssh://ubuntu@server-name/var/repo/repo-name.git/ (fetch)
live ssh://ubuntu@server-name/var/repo/repo-name.git/ (push)

Attempt to push from windows to Ubuntu...
git push live

ubuntu@server-name: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
 

jed

New Member
#3
Thank you for your help.

Eventually this was resolved by adding the following to the top of windows file /.ssh/config
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
 
Top