This guide provides instructions for accessing a shell on your virtual machines (VMs) using two methods: traditional SSH and the Web Terminal feature embedded in the panel. The Web Terminal is the recommended approach as it offers enhanced security and ease of use.
SSH (Secure Shell) is a protocol used to securely connect to remote servers and manage them over an unsecured network. It allows users to execute commands on remote machines, transfer files, and manage network infrastructure.
The Web Terminal is an embedded terminal feature within the panel that allows users to access a shell session without needing to expose port 22. It uses WebSocket technology to create a secure connection through the agent.
Before accessing your VMs, ensure you have the following prerequisites:
Access to the panel with appropriate permissions.
For traditional SSH, an SSH client installed on your local machine and the VM's address.
Put your public key on the VM. From your workstation:
ssh-copy-id root@
TEXT
or append it to `/root/.ssh/authorized_keys` from a session you already have.2. Connect to the VM:
ssh root@
TEXT
3. For a session that survives a dropped connection, multiplex with tmux on the VM:
tmux new -A -s work
TEXT
### Using the Web Terminal1. Click on the desired VM in the panel at [gritiva.com](https://gritiva.com).2. Select **Open Terminal** from the top-right corner.3. A WebSocket-backed shell session will open, allowing you to interact with your VM without needing to expose port 22.If you encounter issues while connecting:- Ensure your SSH key is correctly added and authorized.- Check your network settings to ensure there are no firewall rules blocking the connection.- For Web Terminal, verify that your browser supports WebSocket connections.### FAQs**Q: What are the limitations of the Web Terminal?**A: It drops you on the VM itself, not inside a scope — from there you use the ordinary tools (`systemctl`, `journalctl -u gritiva-agent`, `docker compose`, `sudo /opt/gritiva/gritiva-agent scope-status`). It also lives in the browser tab, so closing the tab ends the session; traditional SSH sessions last as long as your client allows.**Q: Why should I prefer the Web Terminal?**A: The Web Terminal needs no inbound port on the host — it arrives over the same outbound connection the agent already holds open — and panel activity is recorded in the audit log, readable at **Audit logs** in the panel or via `GET /api/v1/audit-logs`. SSH needs port 22 reachable and a key installed on the box.
Note
Note
Ensure you understand the differences between traditional SSH and the Web Terminal. The Web Terminal is recommended for its security features.