File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ The output will be in the format: scp://username@hostname:port
1111You can identify the VM either by its unique ID or by its name.
1212
1313Note: SCP endpoints can only be retrieved from VMs in the "running" state.
14-
14+
1515VMs are currently a beta feature.
1616
1717```
@@ -29,6 +29,12 @@ replicated vm scp-endpoint my-test-vm
2929
3030# Get SCP endpoint with a custom username
3131replicated vm scp-endpoint my-test-vm --username custom-user
32+
33+ # Use the endpoint to SCP a file to a VM by name
34+ scp /tmp/my-file $(replicated vm scp-endpoint my-test-vm)//dst/path/my-file
35+
36+ # Use the endpoint to SCP a file from a VM by name
37+ scp $(replicated vm scp-endpoint my-test-vm)//src/path/my-file /tmp/my-file
3238```
3339
3440### Options
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ The output will be in the format: ssh://username@hostname:port
1111You can identify the VM either by its unique ID or by its name.
1212
1313Note: SSH endpoints can only be retrieved from VMs in the "running" state.
14-
14+
1515VMs are currently a beta feature.
1616
1717```
@@ -29,6 +29,9 @@ replicated vm ssh-endpoint my-test-vm
2929
3030# Get SSH endpoint with a custom username
3131replicated vm ssh-endpoint my-test-vm --username custom-user
32+
33+ # Use the endpoint to SSH to a VM by name
34+ ssh $(replicated vm ssh-endpoint my-test-vm)
3235```
3336
3437### Options
You can’t perform that action at this time.
0 commit comments