# ¿How to clone remote Git repository from my laptop using ssh access?

**URL:** <https://forum.hestiacp.com/t/how-to-clone-remote-git-repository-from-my-laptop-using-ssh-access/13651>\
**Category:** SSH\
**Created:** [March 31, 2024, 5:47pm UTC](https://forum.hestiacp.com/t/how-to-clone-remote-git-repository-from-my-laptop-using-ssh-access/13651 "2024-03-31T17:47:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![onsweb](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/onsweb/32/6118_2.png) [@onsweb](https://forum.hestiacp.com/u/onsweb)\
**Post date:** [March 31, 2024, 5:47pm UTC](https://forum.hestiacp.com/t/how-to-clone-remote-git-repository-from-my-laptop-using-ssh-access/13651/1 "2024-03-31T17:47:49Z")

</div>

Hi! 😄  
I have a VPS server contracted with Hostinger. I have installed Debian 11 along with HestiaCP. I have managed to configure new users, add SSL to domains and the Hestia panel, emails, etc., without any issues. Now I want to be able to edit my web files in the “html\_public” folders from my laptop remotely. Since Hostinger already gave me SSH access to root, I thought about adding SSH to the user (with the ‘user’ role in Hestia) that I specifically use to manage the domains, with the aim of performing a ‘git init’ from the “public\_html” folder. I have managed to do all of this, but the problem arises when I try to perform a ‘git clone’ from my laptop with the following command: ‘git clone [git@midominio.com](mailto:git@midominio.com):usuarioHestia/midominio.com/public\_html.git’ The server responds with: ''Cloning into ‘public\_html’…  
[git@midominio.com](mailto:git@midominio.com)’s password:" I have not known how to respond to this, and I have tried with all the passwords I have noted down (the passwords of the Hestia users, the root Admin, the SSH key passwords) and nothing. I must also clarify that from the Hestia panel, I have added an SSH key to the user with which I want to log in, and still nothing: “Permission denied, please try again.”

---

<div class="post-metadata">

**Author:** ![Aartsie](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/aartsie/32/5308_2.png) [@Aartsie](https://forum.hestiacp.com/u/Aartsie)\
**Post date:** [March 31, 2024, 8:05pm UTC](https://forum.hestiacp.com/t/how-to-clone-remote-git-repository-from-my-laptop-using-ssh-access/13651/2 "2024-03-31T20:05:02Z")

</div>

Hi @onsweb do you have a remote server? Because normally you push the code to a platform like Github of Gitlab in e repository. Or maybe you have your own git server?

Maybe the easiest way to upload your files, is to use [Filezilla](https://filezilla-project.org/) to setup a file transfer over SSH?

Otherwise maybe you want to use a local git repo as a remote git repo but I have never heard of this but I see that it should be possible some how:

> <https://stackoverflow.com/questions/10603671/how-to-add-a-local-repo-and-treat-it-as-a-remote-repo>

---

<div class="post-metadata">

**Author:** ![onsweb](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/onsweb/32/6118_2.png) [@onsweb](https://forum.hestiacp.com/u/onsweb)\
**Post date:** [April 5, 2024, 2:28pm UTC](https://forum.hestiacp.com/t/how-to-clone-remote-git-repository-from-my-laptop-using-ssh-access/13651/3 "2024-04-05T14:28:31Z")

</div>

Hello! I’ve managed to achieve what I wanted. The server I have has Git installed on its operating system. I access the server using SSH authentication, and from there, I initialized Git in the html\_public folder with ‘git init’; then, in a folder on my computer, I cloned the repository I created with ‘git clone [usuario@diminio.com](mailto:usuario@diminio.com):/directorio/del/servidor/al/repositorio/.git’. Now I can make changes from my computer and commit them. So, I don’t need Gitlab for now.

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [May 5, 2024, 2:29pm UTC](https://forum.hestiacp.com/t/how-to-clone-remote-git-repository-from-my-laptop-using-ssh-access/13651/4 "2024-05-05T14:29:16Z")

</div>

Closed on May 5, 2024, 2:29pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
