git-server-docker icon indicating copy to clipboard operation
git-server-docker copied to clipboard

What is the user@host?

Open darewreck54 opened this issue 5 years ago • 1 comments

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,

darewreck54 avatar May 18 '20 01:05 darewreck54

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!

jkarlosb avatar May 18 '20 17:05 jkarlosb