Document running scripts via ssh (#579)

This commit is contained in:
Fedor Korotkov
2023-08-14 06:45:44 -04:00
committed by GitHub
parent e00f62c95a
commit 8b27fea745
+11 -1
View File
@@ -33,9 +33,19 @@ tart run ventura-base
If the guest VM is running and configured to accept incoming SSH connections you can conveniently connect to it like so:
```bash
ssh admin@$(tart ip macos-ventura-base)
ssh admin@$(tart ip ventura-base)
```
!!! tip "Running scripts inside Tart virtual machines"
We recommend using [Cirrus CLI](integrations/cirrus-cli.md) to run scripts and/or retrieve artifacts
from within Tart virtual machines. Alternatively, you can use plain ssh connection and `tart ip` command:
```bash
brew install sshpass
sshpass -p admin ssh -o "StrictHostKeyChecking no" admin@$(tart ip ventura-base) "uname -a"
sshpass -p admin ssh -o "StrictHostKeyChecking no" admin@$(tart ip ventura-base) < script.sh
```
## Mounting directories
To mount a directory, run the VM with the `--dir` argument: