mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-23 00:20:40 +07:00
docs(readme): replace VPS host and SSH port with placeholders
This commit is contained in:
1 parent
263e62a00a
commit
8edc53c969
1 file changed
+2
-2
@@ -53,13 +53,13 @@ sudo install -d -m 700 -o gitea-deployer -g gitea-deployer /home/gitea-deployer/
|
||||
Because no ssh-copy-id is available on Windows, you need to copy the public key to the server manually.
|
||||
|
||||
```powershell
|
||||
type $HOME\.ssh\gitea_deploy_key.pub | ssh gitea-deployer@112.213.91.239 -p 2212 "cat >> ~/.ssh/authorized_keys"
|
||||
type $HOME\.ssh\gitea_deploy_key.pub | ssh gitea-deployer@vps.example.com -p 2222 "cat >> ~/.ssh/authorized_keys"
|
||||
```
|
||||
|
||||
Test ssh connected with a private key
|
||||
|
||||
```powershell
|
||||
ssh gitea-deployer@112.213.91.239 -p 2212 -i "$HOME\.ssh\gitea_deploy_key" -o IdentitiesOnly=yes
|
||||
ssh gitea-deployer@vps.example.com -p 2222 -i "$HOME\.ssh\gitea_deploy_key" -o IdentitiesOnly=yes
|
||||
```
|
||||
|
||||
Get content of private key
|
||||
|
||||
Reference in new issue
Block a user