Obvioulsy there must be something I don’t get, but I don’t see what it it:
I’m trying to replicate some datasets of a truenas host from a remote backup system.
I get this error message:
“Unknown SSH+NETCAT transport error: ‘sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper\n’”
this is also the only available message in the jobs logs.
I’ve configured a replicator user on the truenas with pwdless sudo for /usr/sbin/zfs ('I’ve added zpool and nc later on)
I’ve configured the SSH Connection used for the Replication Task as such on the backup host:
SSH Connection
type: Semi-automatic
Admin username: truenas_admin
Password: pass
username: replicator
Private Key: Generate New ( replicator@truenas key )
Then configured the Replication Task options.
But with this I don’t know which user on backup is going to establish the ssh connection, cause I was never asked.
I was able to get the private key from replicator@truenas key from the UI.
On backup I copied it to root home and truenas_admin home under .ssh/id_rsa
and was able from these two users to successfully perform:
ssh replicator@truenas sudo -n zfs list
ssh replicator@truenas sudo -n zpool list
ssh replicator@truenas sudo -n nc -h
I don’t know which are necessary really though, outside of the automatically added to passwdless sudo /usr/sbin/zfs
In any case, despite being able to manually ssh to truenas from backup with users root and truenas_admin I’m still getting:
“Unknown SSH+NETCAT transport error: ‘sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper\n’”