Wondering if anyone can help with a Git push setup I'm having trouble with? I am trying to setup Git remote on a Windows local computer and push to a IONOS shared host server. I am able to SSH to my IONOS shared host using PuTTY with no issues. So I'm hoping I can setup Git to remote to the server and push local update files to the host repo. Here's what I've tried so far:
When I PuTTY into the host server using username, ip address, I land here:
(uiserver):u123:~$
ls produces this
logs repo src www
My post-receive file in repo/site.git/hooks =
#!/bin/sh
git --work-tree=/ --git-dir=/repo/site.git checkout -f
local git remote setup =
git remote add production ssh://u123@<ip address>:22/repo/site.git
(u123 is user name, I do not have root access)
When I do a "git push production master" from a Git Bash (MINGW64) cmd window, I get the stock "The server's host key is not cached in the registry ... " stuff, answer "n" (until I get it working) and it just hangs. I then Ctrl-C and I get "fatal: Could not read from remote repository".
repo dirs on host server are rwx on all for now, until (if) I get this working, so I know I have full access. I do have full path info on the host server and have also tried those in the post-receive and git remote.
Like I mentioned, username and ip address work in PuTTY, just not via Git. Any help would be appreciated, I've exhausted every combo I can think of. Maybe I just cannot do this on a IONOS Hosted Server.
tia _mark