Skip to content

--ssh-host does not actually change the ssh host #604

@gracen-writes-code

Description

@gracen-writes-code
  • Server OS (Operating System) - preferably Debian 12: Alpine Linux 3.22
  • On which OS you run cmdeploy: Alpine Linux 3.22
  • chatmail/relay version: 46d2334e9c6909ae5192eac62f3bd30d12d3342e

Expected behavior

cmdeploy uses the host provided by --ssh-host when connecting to the server for installation.

Actual behavior

cmdeploy still attempts to connect to the public-facing hostname passed to cmdeploy init instead of the provided SSH host.

Steps to reproduce the problem:

  1. cmdeploy init <some hostname>
  2. cmdeploy run --ssh-host <different hostname>

Logs

I unfortunately lost the logs (I wasn't planning on filing an issue when I initially noticed this), but I can't imagine they'd be necessary.

Notes

I noticed this issue while trying to set up chatmail in a VM, where the VM would have no publicly available SSH access. I needed to set it up in a VM because I already had postfix running on my server. I'd imagine this would be a common use-case for server owners who already have existing mail infrastructure, but want to host a chatmail relay without having to use a different machine for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions