ssh_tunnel: use ssh-copy-id

This commit is contained in:
openoms
2020-04-05 15:07:16 +01:00
parent 825ba12b0d
commit 48fba28192

View File

@@ -3,7 +3,7 @@
## Advantages: ## Advantages:
* no port forwarding needed on the LAN of the host * no port forwarding needed on the LAN of the host
* encrypted connection * encrypted connection
* hides the IP of the host * hides the IP of the host from the public
## Requirements: ## Requirements:
* a Virtual Private Server (VPS) - eg. a minimal package on Lunanode for ~3.5$/month * a Virtual Private Server (VPS) - eg. a minimal package on Lunanode for ~3.5$/month
@@ -45,7 +45,7 @@
* copy the ssh public key over to the VPS (fill in the VPS_IP_ADDRESS). * copy the ssh public key over to the VPS (fill in the VPS_IP_ADDRESS).
Will be prompted for the root password of the VPS. Will be prompted for the root password of the VPS.
`# cat ~/.ssh/id_rsa.pub | ssh root@VPS_IP_ADDRESS 'cat >> ~/.ssh/authorized_keys && chmod -R 700 ~/.ssh/'` `# ssh-copy-id root@VPS_IP_ADDRESS`
## Working on the VPS ## Working on the VPS