Skip to content

Register and Connect a Server

Registering a new server and completing the first connectivity test.

Updated View as Markdown

Goal

Register a Linux server you own as an Appaloft deployment target, and confirm Appaloft can reach it securely over SSH.

When to use this task

  • Onboarding a new server for the first time.
  • Migrating to a new machine, or temporarily troubleshooting a server’s connectivity.

Prerequisites

  • A Linux server reachable over SSH, that you have root or sudo access to.
  • An SSH key (a dedicated deploy key is recommended, rather than your personal login key).

Inputs and defaults

InputDescriptionDefault
hostAn explicit hostname, IPv4, or IPv6 addressNone, required; CIDR, URLs, and host:port forms are not accepted
portSSH port22
userThe system user used to connectNone, required
CredentialSSH key path / a saved credential / one-time inputNone, required
Display name / labelHelps you tell servers apart in the listOptional

Server registration input should not include resource, environment, or domain-related fields — those are independent configuration layers.

Web steps

  1. Go to Servers, click Register server.
  2. Fill in the host, port, user, and SSH credential (you can paste the private key content, or choose a saved credential).
  3. After submitting, Appaloft immediately runs a connectivity test and shows the result.

CLI steps

# Register an IPv4 server
appaloft server register \
  --name primary \
  --host 203.0.113.10 \
  --port 22 \
  --provider generic-ssh \
  --target-kind single-server

# Register an IPv6-only server
appaloft server register \
  --name ipv6-primary \
  --host 2001:db8::1 \
  --port 22 \
  --provider generic-ssh

# Manually rerun the connectivity test
appaloft server test srv_primary

# View server details (does not trigger a new connectivity test)
appaloft server show srv_primary

# Rename (only affects the display name)
appaloft server rename srv_primary --name "Primary SSH server"

Cluster targets like Docker Swarm need to explicitly declare their shape:

appaloft server register \
  --name swarm-cluster \
  --host 203.0.113.20 \
  --provider docker-swarm \
  --target-kind orchestrator-cluster

Expected output and status

The connectivity test checks: whether DNS/IP and the port are reachable, whether SSH credentials work, whether the target user has the permissions needed to deploy, whether the base runtime environment meets requirements, and where necessary returns proxy- or Docker-related diagnostics. The result distinguishes hostname resolution failures, network/host unreachable, authentication failures, and host-key verification failures instead of a single generic error.

Verification

  • The command or Web UI shows the connectivity test passing.
  • Run appaloft server show srv_primary and confirm status, provider, and summary information match what you expect.

Rollback / recovery

SymptomRecovery
Connection timeoutCheck host, port, firewall, and network path
Authentication failureCheck the SSH key, user, and authorized_keys on the server
Insufficient permissionsConfirm the target user can execute the commands deployment requires
Missing runtime environmentInstall or switch to a supported provider/runtime per the diagnostics

After the connectivity test passes, continue on to Managing SSH Credentials and Proxy Readiness And Terminal Sessions.

When you no longer need a server, deactivate it before deleting it:

appaloft server deactivate srv_primary
appaloft server delete-check srv_primary
appaloft server delete srv_primary --confirm srv_primary

The pre-delete safety check blocks deleting a server that’s still active, or still has deployment history, resources, domains, certificates, or retained audit records; deletion itself doesn’t automatically clean these up either.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close