Having the same problem. TrueNAS-12.0-U7
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 138, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1213, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 975, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/cloud_sync.py", line 1022, in list_directory
return await self.ls(dict(cloud_sync, credentials=credentials), path)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/cloud_sync.py", line 1054, in ls
raise CallError(proc.stderr, extra={"excerpt": lsjson_error_excerpt(proc.stderr)})
middlewared.service_exception.CallError: [EFAULT] 2022/01/30 18:46:54 Failed to create file system for "remote:/": NewFs: couldn't connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
ssh/sftp works from other machine using the same authentication.
Server says
sshd[5222]: Connection closed by authenticating user <user> <ip> port 62548 [preauth]