Guide
Connecting over SSH
Terminal access to the rented Mac from Windows, a Mac or Linux: an SSH key, your first login, file transfers, tmux and VS Code. No extra software needed.
You connect to the rented Mac with ordinary SSH through our gateway gate.bohemiansilicon.com. There is nothing extra to install and no network to set up. The whole setup takes about 10 minutes.
In our email with login details you get your username, your port number (it looks like 2201), the fingerprint of the Mac and, for remote desktop, a password. Wherever this guide says USERNAME and PORT, use the values from that email.
For SSH you send us only your public SSH key. Passwords are disabled for SSH; you log in with the key only.
Windows
Windows 10 and 11 include the SSH client, there is nothing else to install.
1. Create an SSH key
We recommend a separate key just for Bohemian Silicon. The commands below save it under its own name, so they will not overwrite a key you already use elsewhere (for example id_ed25519 for GitHub).
- Open PowerShell (click Start, type
PowerShelland open it). - Run these commands. When asked for a passphrase, type one and confirm it (nothing is shown while you type). The passphrase protects the key if someone copies the file. You can leave it empty, but that is less safe.
mkdir -Force $HOME\.ssh | Out-Null
ssh-keygen -t ed25519 -f $HOME\.ssh\bohemian_ed25519 -C bohemian-silicon
The command creates two files. bohemian_ed25519 is your private key: it stays on your computer and you never send it to anyone. bohemian_ed25519.pub is the public key: you send it to us. It is safe to send by ordinary email, because on its own it cannot be used to log in.
Want to use a key you already have? Send us its .pub file and use its file name instead of bohemian_ed25519 in the commands below.
- Show the public key:
Get-Content $HOME\.ssh\bohemian_ed25519.pub
Copy the whole line that starts with ssh-ed25519.
- Send the key to us by email. Never send the file without
.pub: that is your private key, and it should stay only on your own computer.
You will type the key’s passphrase each time you connect.
2. Connect
ssh -i $HOME\.ssh\bohemian_ed25519 -p PORT USERNAME@gate.bohemiansilicon.com
- The first time, SSH shows the fingerprint of the Mac (
ED25519 key fingerprint is SHA256:…) and asksAre you sure you want to continue connecting?. Compare it with the fingerprint in our email. Typeyesonly if they match exactly. If they don’t, typenoand write to us. - You are logged in when you see a line ending with
%. Typeexitto disconnect.
Mac
1. Create an SSH key
We recommend a separate key just for Bohemian Silicon. The commands below save it under its own name, so they will not overwrite a key you already use elsewhere (for example id_ed25519 for GitHub).
- Open Terminal (Applications → Utilities → Terminal).
- Run these commands. When asked for a passphrase, type one and confirm it (nothing is shown while you type). The passphrase protects the key if someone copies the file. You can leave it empty, but that is less safe.
mkdir -p ~/.ssh
ssh-keygen -t ed25519 -f ~/.ssh/bohemian_ed25519 -C bohemian-silicon
The command creates two files. bohemian_ed25519 is your private key: it stays on your computer and you never send it to anyone. bohemian_ed25519.pub is the public key: you send it to us. It is safe to send by ordinary email, because on its own it cannot be used to log in.
Want to use a key you already have? Send us its .pub file and use its file name instead of bohemian_ed25519 in the commands below.
- Show the public key:
pbcopy < ~/.ssh/bohemian_ed25519.pub
The key is now in your clipboard; paste it with ⌘V.
- Send the key to us by email. Never send the file without
.pub: that is your private key, and it should stay only on your own computer.
Tip: to avoid typing the passphrase every time, store it in the macOS keychain:
ssh-add --apple-use-keychain ~/.ssh/bohemian_ed25519
2. Connect
ssh -i ~/.ssh/bohemian_ed25519 -p PORT USERNAME@gate.bohemiansilicon.com
- The first time, SSH shows the fingerprint of the Mac (
ED25519 key fingerprint is SHA256:…) and asksAre you sure you want to continue connecting?. Compare it with the fingerprint in our email. Typeyesonly if they match exactly. If they don’t, typenoand write to us. - You are logged in when you see a line ending with
%. Typeexitto disconnect.
Linux
1. Create an SSH key
We recommend a separate key just for Bohemian Silicon. The commands below save it under its own name, so they will not overwrite a key you already use elsewhere (for example id_ed25519 for GitHub).
- Open a terminal.
- Run these commands. When asked for a passphrase, type one and confirm it (nothing is shown while you type). The passphrase protects the key if someone copies the file. You can leave it empty, but that is less safe.
mkdir -p ~/.ssh
ssh-keygen -t ed25519 -f ~/.ssh/bohemian_ed25519 -C bohemian-silicon
The command creates two files. bohemian_ed25519 is your private key: it stays on your computer and you never send it to anyone. bohemian_ed25519.pub is the public key: you send it to us. It is safe to send by ordinary email, because on its own it cannot be used to log in.
Want to use a key you already have? Send us its .pub file and use its file name instead of bohemian_ed25519 in the commands below.
- Show the public key:
cat ~/.ssh/bohemian_ed25519.pub
Copy the whole line that starts with ssh-ed25519.
- Send the key to us by email. Never send the file without
.pub: that is your private key, and it should stay only on your own computer.
Tip: most Linux desktops already run an SSH agent, so you can enter the passphrase once per login:
ssh-add ~/.ssh/bohemian_ed25519
2. Connect
ssh -i ~/.ssh/bohemian_ed25519 -p PORT USERNAME@gate.bohemiansilicon.com
- The first time, SSH shows the fingerprint of the Mac (
ED25519 key fingerprint is SHA256:…) and asksAre you sure you want to continue connecting?. Compare it with the fingerprint in our email. Typeyesonly if they match exactly. If they don’t, typenoand write to us. - You are logged in when you see a line ending with
%. Typeexitto disconnect.
Transferring files
Run scp on your own computer, not on the rented Mac.
Windows
scp -i $HOME\.ssh\bohemian_ed25519 -P PORT data.zip USERNAME@gate.bohemiansilicon.com:~/
scp -i $HOME\.ssh\bohemian_ed25519 -P PORT USERNAME@gate.bohemiansilicon.com:~/results.zip .
Mac, Linux
scp -i ~/.ssh/bohemian_ed25519 -P PORT data.zip USERNAME@gate.bohemiansilicon.com:~/
scp -i ~/.ssh/bohemian_ed25519 -P PORT USERNAME@gate.bohemiansilicon.com:~/results.zip .
The first line uploads a file to the rented Mac, the second downloads one into the current folder. Add -r to copy a whole folder.
Long-running jobs (tmux)
When you close the terminal or the connection drops, programs started in it stop too. Run long jobs, such as model downloads or training, inside tmux: the session keeps running on the Mac after you disconnect. After logging in to the Mac, start a session:
tmux new -s work
Start your job in it. To leave it running and disconnect, press Ctrl+B, release both keys, then press D. After you connect again, return to the session with:
tmux attach -t work
tmux ls lists your sessions; typing exit inside a session ends it. All sessions end at the latest when the rental ends and your account is deleted.
Visual Studio Code (Remote-SSH)
- In VS Code, install the Remote - SSH extension from Microsoft.
- Press F1, choose Remote-SSH: Add New SSH Host… and enter this command (the same on Windows, Mac and Linux):
ssh -i ~/.ssh/bohemian_ed25519 -p PORT USERNAME@gate.bohemiansilicon.com
- Save it to the suggested SSH configuration file. Then press F1 again, choose Remote-SSH: Connect to Host… and pick the address of the Mac. If asked for the platform, choose macOS.
- On the first connection VS Code installs its server part into your account on the Mac, which takes a minute or two. After that you can open folders on the Mac and use its terminal directly in VS Code.
Troubleshooting
- The connection times out or is refused: check the address
gate.bohemiansilicon.comand the port number after-p. Some company or hotel networks block outgoing connections to unusual ports; try another network, for example a mobile hotspot, or write to us. Permission denied (publickey)or a password prompt: your key was not used. Connect from the computer where you created the key, include-iwith the path to the key, and check the username.REMOTE HOST IDENTIFICATION HAS CHANGED: stop and do not connect. Write to us first. We will tell you whether the Mac was reinstalled and send you its new fingerprint. Only then runssh-keygen -R "[gate.bohemiansilicon.com]:PORT"and connect again, checking the new fingerprint.
When the rental ends
When the rental ends, we delete your macOS account with its home folder and remove your files from shared temporary folders (/tmp, /Users/Shared). Download everything you want to keep before the rental ends. Afterwards you can also delete the key from your computer: the files bohemian_ed25519 and bohemian_ed25519.pub in your .ssh folder.
Stuck? Write to hello@bohemiansilicon.com and attach a screenshot or the error text. We usually reply within minutes.