Can anyone @delta help me with setting up a relay server? I'm following the docs.

  • root ssh access is (reluctantly) allowed
  • pyinfra still asks for password of a random ssh key on my local machine
  • it fails because authentication fails

I don't get it, because password authentication is enabled.

#deltachat #fedihelp

Setting up a chatmail relay - chatmail relay documentation

@pft
Hi. If I understand you correctly, you need to set connecting to your root passwordless. First on your main user you do
ssh-keygen -t ed25519 -C "deploy".
Then you need to start
ssh-copy-id root@yourDomainName.
For some reason I also did
hostnamectl set-hostname *domain name*, but I don't remember why. Then do sudo nano /etc/ssh/sshd_config and make PasswordAuthentication no.

Docs are not good at explaining, sadly, so I made this:
https://timursagdenov.neocities.org/deltachatrelayinstallguide
I made this a long ago, so it may be not actual, but some people think it's better for deploying than the official docs.

@delta
Руководство по установке Chatmail relay

@zeus thanks for the elaboration. There was a massive misunderstanding on my side. The requirements explicitly mention key-based ssh account. My misunderstanding was based on the fact the the script first asks for the ssh password (not the key password!) does some checks and then fails.

@delta