I installed Gogs the other day and configured it.
Inside the config I set the user to “gogs”, the SSH port to my servers SSH port and everything worked perfectly fine.
However I just tried to SSH into my server and received the following error:
PTY allocation request failed on channel 0 2018/10/30 12:16:11 [FATAL] [...g/setting/setting.go:589 NewContext()] Expect user 'gogs' but current user is: root Connection to XXX.XXX.XXX.XXX closed.
Had to boot up a recovery system because I had no other way of accessing the server. I tried to change the user to “root” but then received an error upon login, telling me that I authenticated correctly but gogs prevents the Login.
Then I though okay, ill just disable the SSH inside gogs. Well, I did that but I still can’t SSH into my server because now gogs prevents it and says SSH is disabled.
Is there anyway I can disable gogs’ SSH in a way I can still SSH into my server? I really don’t wanna kick out gogs but SSH is a must.