opengist icon indicating copy to clipboard operation
opengist copied to clipboard

[Feature request] Creating new gist using SSH

Open samagana opened this issue 1 year ago • 2 comments

We are looking to use Opengist as a self hosted solution for sharing gists within our organization as an alternative to the phabricator paste (link) which has been deprecated. Phabricator paste did provide a single command line interface arc paste through which folks could create a paste.

With opengist, I am unable to create a new gist through ssh (which currently seems to be the only documented way to interact with opengist through CLI). Although, I am able to clone existing gists with ssh (which also seems to be broken if I pair my Opengist deployment with Postgresql - #403).

Below is the error I am encountering when trying to push using ssh to path ssh://<opengist_url>:2222/init.git

Opengist: invalid gist path
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 3184, received 1820 bytes, in 0.0 seconds
Bytes per second: sent 1643156.4, received 939241.4
debug1: Exit status 0
fatal: Could not read from remote repository.

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

Trying to create new gists using http (as documented here) is working all good

git remote add origin http://<opengist_url>:6157/init
git push -u origin master

samagana avatar Dec 18 '24 02:12 samagana

Trying to create new gists using http (as documented here) is working all good

git remote add origin http://<opengist_url>:6157/init
git push -u origin master

This seems not to work when using OAuth.

waja avatar Jul 06 '25 16:07 waja

Running into the same issue with using OAuth

ravensorb avatar Oct 01 '25 12:10 ravensorb