Did you manually test the new keys before replicating by trying to SSH both ways?
Thanks again for your reply,
And yes, actually task starts normally (ssh auth works fine) but after a while, ssh simply disconnects. (Connection to R.R.R.R closed by remote host)
This is a portion of the last zfs replication log:
.R.R] [shell:49] [async_exec:3345] Reading stdout
[2022/11/21 07:48:55] DEBUG [Thread-111] [zettarepl.paramiko.replication_task__task_1] [chan 9] EOF received (9)
[2022/11/21 07:48:55] DEBUG [replication_task__task_1.dataset_size_observer] [zettarepl.transport.base_ssh] [ssh:
root@R.R.R.R] [shell:49] [async_exec:3345] Waiting for exit status
[2022/11/21 07:48:55] DEBUG [Thread-111] [zettarepl.paramiko.replication_task__task_1] [chan 9] EOF sent (9)
[2022/11/21 07:48:55] DEBUG [replication_task__task_1.dataset_size_observer] [zettarepl.transport.base_ssh] [ssh:
root@R.R.R.R] [shell:49] [async_exec:3345] Success: 'STGO-01/XXXX-DCVLP\tused\t4335714064\t-\n'
[2022/11/21 07:48:55] DEBUG [replication_task__task_1.progress_observer] [zettarepl.transport.local] [shell:1] [async_exec:3346] Running ['ps', '-o', 'command', '-p', '61972']
[2022/11/21 07:48:55] DEBUG [replication_task__task_1.progress_observer] [zettarepl.transport.local] [shell:1] [async_exec:3346] Success: 'COMMAND\nzfs: sending XXXX-01/XXXX-DCVLP@auto-2022-09-25_00-22 (0%: 2684280488/34085758329648) (zfs)\n'
[2022/11/21 07:48:58] DEBUG [replication_task__task_1.async_exec_tee.wait] [zettarepl.transport.local] [shell:1] [async_exec:3326] Error 1: None
[2022/11/21 07:48:58] DEBUG [replication_task__task_1.process] [zettarepl.transport.local] [shell:1] [async_exec:3325] Error 1: "Connection to R.R.R.R closed by remote host.\nwarning: cannot send 'XXXX-01/XXXX-DCVLP@auto-2022-09-25_00-22': signal received\n"
[2022/11/21 07:48:58] DEBUG [replication_task__task_1.monitor] [zettarepl.transport.local] [shell:1] [async_exec:3326] Stopping
[2022/11/21 07:48:58] WARNING [replication_task__task_1] [zettarepl.replication.run] For task 'task_1' at attempt 1 recoverable replication error RecoverableReplicationError("Connection to R.R.R.R closed by remote host.\nwarning: cannot send 'XXXX-01/XXXX-DCVLP@auto-2022-09-25_00-22': signal received")
[2022/11/21 07:48:58] ERROR [replication_task__task_1] [zettarepl.replication.run] Failed replication task 'task_1' after 1 retries