A host is a server you connect to, saved in your vault with its address, user and sign-in method. Groups give many hosts the same defaults. Identities let several hosts share one user and sign-in method.
Adding and editing a host
Choose New host next to Hosts in the sidebar or on the Hosts page, or the pencil next to a host to edit it. The host editor has these fields:
- Vault
- For a new host, only shown when you can write to more than one vault, for example a team's. A host can only use keys, jump hosts, VPNs, identities and groups from its own vault. An existing host's editor says which vault it is in, with Move to… to move it to another one. See Shared vaults and access.
- Label, Hostname or IP, Port
- The label is what the sidebar shows. The port is 22 unless you change it.
- Group
- Shown once the vault has groups. See below.
- Sign in as
- Shown once there are identities. Pick This host's own user and sign-in, the group's identity, or an identity.
- User and authentication
- Password: saved in the vault, or left empty to be asked when you connect. Once one is saved, Forget the saved password and ask every time removes it. If the server uses keyboard-interactive sign-in instead (common with PAM), MorphGate answers its password prompts with the same password; it can't answer other questions that way, such as a one-time code. SSH key: a key from your vault, picked under Key. SSH agent: keys kept in an SSH agent, such as 1Password, Bitwarden, Secretive, Pageant or your system's agent; pick the Agent and, if you like, one Key. See Keys in 1Password, Bitwarden and other SSH agents.
- Connect via
- Direct connection, a jump host, or A command on this computer (proxy command). If the host's group sets a jump host, the first choice reads From the group: jump host and its name. With a jump host, Through the jump host by a command (optional) appears. See Jump hosts.
- VPN
- None (your normal network), one of your VPNs, or the group's (From the group:). With a jump host it shows From the jump host:, and with a proxy command None: the proxy command connects it. See A VPN per host.
- Terminal scheme
- This device's scheme, or one for this host only. See Themes and terminal appearance.
- Login command (optional)
- A command that runs with a terminal instead of the login shell, as
ssh -t host <command>does, for exampletmux attach. - Keep the session on the server (tmux)
- Each tab attaches to its own tmux session on the host. Off while a login command is set. See Terminal sessions.
- Forward the SSH agent
- Lets programs on the host use your agent's keys while you're connected. Only for hosts you trust. See Agent forwarding.
- Record sessions into the vault
- See Session logs.
- Tags and Notes
- Tags are comma separated. The search box in the sidebar matches labels, hostnames, users and tags.
- Attachments
- Files kept with the host. See below.
Choose Save, or Save & connect. To delete a host, choose Delete host, then Really delete?. Its attachments go with it. A host that another host or group still uses as its jump host, or that a tunnel goes through, can't be deleted: the message names what uses it.
Beside the form, Connection path shows how MorphGate will reach the host: this device, the VPN, each jump host, then the host, marked key pinned once its host key is pinned. A preview shows a few lines in the host's terminal scheme.
Quick connect
Quick connect (the plus at the end of the tab bar) opens a session without saving anything first. Enter the Host, Port and User, and pick how to sign in:
- Password.
- Key: choose From file and pick the private key file (
id_ed25519, a .pem file or PuTTY's .ppk), or Paste the key. Enter its passphrase if it's encrypted. The key is used for this connection only. - SSH agent: every key in your system's SSH agent.
Tick Save to vault to keep it as a host. With a password, the password is saved too. With a key, the key is imported into the vault and the host signs in with it. Quick connect remembers the last host, port, user and sign-in method, never a password or a key. It has no jump host or VPN: save the host and set them in its editor.
The Hosts page
Choose Hosts in the sidebar to see every host in a table: first those without a group, then each group with its hosts under it and what it gives them. Each host shows whether it's connected, its address, its Route (direct, via a jump host, through a cloud or a proxy command, and its VPN), what it Signs in with, and its Tags.
Choose a host's name to connect, or to go to its session when it has one. Connect (New tab once it has a session), Browse files (SFTP) and Edit show when you point at a row; on a touch screen they're always shown. The search box matches names, addresses, users and tags, and the filters next to it show only the hosts with one of your most used tags, or only Connected ones. On a computer, MorphGate opens on this page once your vault has hosts.
At the top:
- New host, New group and Quick connect (see above).
- Add from…, on a computer:
- Import… brings in hosts from OpenSSH's configuration, PuTTY, a CSV file or Royal TS. See Import hosts.
- Clouds… keeps hosts in step with Vallic Cloud, AWS, Google Cloud, Azure, Hetzner Cloud or DigitalOcean. A host whose cloud no longer lists it is marked gone from its cloud, and one that isn't running shows its state, such as stopped. See Hosts from your cloud.
- Feed URL… keeps hosts and snippets in step with a feed your team publishes. See Add a feed.
- Select turns the list into checkboxes. Tick hosts, or Select all, then choose Move to group…, Move to… (another vault) or Delete…. Done ends selecting.
Groups
A group holds hosts and the defaults they share. Create one with New group on the Hosts or Groups page, or the group icon next to Hosts in the sidebar. A group can set:
- an Identity,
- Connect via (a jump host),
- a VPN,
- a Terminal scheme,
- Keep sessions on the server (tmux).
Each host takes from its group what it leaves empty. A host uses the group's identity only when its own user is empty. Groups fold and unfold in the sidebar; this device remembers which are folded. Deleting a group (Delete group, then Really delete?) keeps its hosts, with the values they took from it.
Groups in the sidebar lists your groups, with how many hosts each has, what it gives them and how many are connected. Choose a group's name to open it: What its hosts use shows the identities, keys, jump hosts and VPNs they connect with, then come its hosts, the tunnels through them and their attached files. Edit group changes its defaults, and Move to… moves the group to another vault.
Identities
An identity is a user and a way to sign in (password, SSH key or SSH agent) that any number of hosts and groups can use. Change it once and every host using it signs in the new way. Choose Keys in the sidebar, then the Identities tab and New identity; an identity's name opens it. The identity editor lists the hosts and groups that use it under Used by.
Attachments
You can keep files with a host: a runbook, a certificate, a config file. Save the host first, then choose Attach files in its editor.
- Each file can be up to 20 MB.
- Files are encrypted with the vault's key and synced with it, to sync servers that store files. Other devices show a file as On the server and fetch it when you choose Save, which puts it in your Downloads folder.
- A file the server refused shows Not uploaded with the reason. On morphgate.com, files need an active plan, and each account and team has a storage limit; when the plan is the reason, Upgrade opens the page where you choose one.
- Deleting the host deletes its attachments.
Items in shared vaults
Hosts, keys and other items from a team's vault carry the vault's name in the sidebar. If you can only view that vault, the editor says You can use it but not change it. See Shared vaults and access.