Ritogi / Guides / Connect to Ritogi Cloud over SSH
Connect to Ritogi Cloud over SSH
Open your Ritogi Cloud shell from your own terminal. Install one small program, add your key, and run one command.
Tested on the commands and the ssh config on Linux with cloudflared 2026.12.0, signed in to a TEST account; the apt steps on Ubuntu 24.04 and Debian 12, 2026-12-06.
Ritogi Cloud is the shell where the ritogi command already knows your servers. You can open it from the portal, or from the terminal on your own computer with the steps below.
In the commands on this page, ACCOUNT stands for your account name. The portal shows the same steps with your account name filled in: Settings, next to SSH keys.
Install cloudflared
The connection goes through Cloudflare, so your computer needs Cloudflare's small cloudflared program. Install it once.
On a Mac with Homebrew:
brew install cloudflaredOn Debian or Ubuntu, add Cloudflare's package repository, then install:
sudo mkdir -p --mode=0755 /usr/share/keyrings
curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | sudo tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null
echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared any main' | sudo tee /etc/apt/sources.list.d/cloudflared.list
sudo apt-get update && sudo apt-get install cloudflaredOn Windows, download the 64-bit installer (cloudflared-windows-amd64.msi) from Cloudflare's downloads page and run it. Windows does not update it on its own, so download a new copy now and then.
These steps come from Cloudflare's own instructions. Check that it worked:
cloudflared --versionAdd your public key
Ritogi Cloud signs you in with an SSH key. There are no passwords. Show your public key:
cat ~/.ssh/id_ed25519.pubIf that says there is no such file, make a key first, then run the cat line again:
ssh-keygen -t ed25519Copy the whole line it prints. It starts with ssh-ed25519. In the portal, open Settings, paste the line under SSH keys, and press Add key. Only the .pub file is shared. The other file stays on your computer and is never pasted anywhere.
Connect
Run this, with your account name in place of ACCOUNT:
ssh -o ProxyCommand="cloudflared access ssh --hostname %h" ACCOUNT@cloud.ritogi.comYou land in your Ritogi Cloud shell. Try ritogi fleet list. Type exit to leave.
Make it just "ssh ritogi"
Add these lines to the file ~/.ssh/config on your computer. Create the file if it is not there.
Host ritogi
HostName cloud.ritogi.com
User ACCOUNT
ProxyCommand cloudflared access ssh --hostname %hFrom then on, this is all you type:
ssh ritogiIf ssh says it cannot find cloudflared, put the full path to it in the ProxyCommand line. On a Mac, which cloudflared prints it.
What is kept between sessions
Your home folder in the cloud shell is temporary. Files you save there are erased a few minutes after you close your last session, and when we update the service. Only your command history is kept from one session to the next. Your servers and the History page in the portal are not affected.