Files
obsidian-vault/personal/docs/setup SSH macOS VM VirtualBuddy.md
T
2026-05-29 09:01:25 +00:00

1.1 KiB
Executable File

macOS VM Setup (VirtualBuddy): Disable Gatekeeper, Disable Quarantine, Enable SSH, Install SSH Key


1. Disable Gatekeeper (allow unnotarized apps)

Run:

sudo spctl --master-disable

Open System Settings → Privacy & Security and enable Allow applications from Anywhere.

Verify:

spctl --status

Expected output:

assessments disabled


2. Disable macOS quarantine tagging

Stop macOS from tagging downloads:

defaults write com.apple.LaunchServices LSQuarantine -bool false killall Finder


3. Grant Full Disk Access to Terminal

Open:

System Settings → Privacy & Security → Full Disk Access

Enable Terminal.


4. Enable SSH (Remote Login)

Run:

sudo systemsetup -setremotelogin on

Verify:

sudo systemsetup -getremotelogin

Expected output:

Remote Login: On


5. Find the VM IP address

Run inside the VM:

ipconfig getifaddr en0


6. Copy SSH key from host macOS

Run on the host:

ssh-copy-id admin@VM_IP


7. Connect to the VM via SSH

Run on the host:

ssh admin@VM_IP

SSH login will now work using the key without requiring a password.