jkarlosb / git-server-docker

Git Server in Docker
315 stars 143 forks source link

What is the user@host? #19

Open darewreck54 opened 4 years ago

darewreck54 commented 4 years ago

This might be a stupid question but

Copy them to keys folder: 
- From host: $ cp ~/.ssh/id_rsa.pub ~/git-server/keys
- From remote: $ scp ~/.ssh/id_rsa.pub user@host:~/git-server/keys
You need restart the container when keys are updated:
$ docker restart <container-id>

What is the user@host here? I'm guessing it relates to the localhost? and the hostname?

Thanks,

jkarlosb commented 4 years ago

Hi darewreck54!

There are no stupid questions! :)

It is the machine where you run Docker. If you are working in localhost it is not necessary this step. It is necessary only if you work with Docker in remote host, in this case 'host' refers to it IP address or domain name.

I hope it can help you!

Best regards!