SSH access to the repository when using the "GIT Repository" server type #1381
-
The 0.44.xxx version of Publii introduced "GIT Repository" as a server type. When I go to set one up, I'm prompted to supply a URL, branch, Username, and "Password / Token". I've used GIT for years, and normally I set up a repository and access it using SSH public keys (see https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server). For example, to access Publii with SSH, I would use the string "git@github.com:GetPublii/Publii.git". Can Publii access repositories this way and, if so, how? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Git repositories via SSH AFAIK are not supported in the library used in Publii (isomorphic-git). And the alternative libraries which probably supports this way are not considered by us as they are native modules which are very problematic to maintain and also due licensing conflicts. So at this moment there is no way to solve this issue. |
Beta Was this translation helpful? Give feedback.
-
I have one idea - maybe to consider in the future - use https://www.npmjs.com/package/simple-git as alternative option which can be enabled under advanced settings - then if somebody has git installed, we can use them instead of JS library. I will check this concept in the nearest days. It would be a solution for more advanced users |
Beta Was this translation helpful? Give feedback.
Git repositories via SSH AFAIK are not supported in the library used in Publii (isomorphic-git). And the alternative libraries which probably supports this way are not considered by us as they are native modules which are very problematic to maintain and also due licensing conflicts. So at this moment there is no way to solve this issue.