SSH-Error

it-fabric

Cadet
Joined
Apr 15, 2020
Messages
2
Hi,

I'm new to FreeNAS and trying to setup a replication task from FreeNAS (11.3-U2) to my secondary NAS. Setting up an SSH-connection with keys from secondary NAS.
It seems that I can specify whatever I want is resulting in:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 130, in call_method
io_thread=False)
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1081, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 961, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/replication.py", line 703, in list_datasets
return await self.middleware.call("zettarepl.list_datasets", transport, ssh_credentials)
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1131, in call
app=app, pipes=pipes, job_on_progress_cb=job_on_progress_cb, io_thread=True,
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1081, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/zettarepl.py", line 402, in list_datasets
raise CallError(repr(e))
middlewared.service_exception.CallError: [EFAULT] AuthenticationException('Authentication failed.')


Any advice? Thanks in advance!
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703

it-fabric

Cadet
Joined
Apr 15, 2020
Messages
2
@sretalla
Thanks for the reply, here yo go
- Source location: On this System (selction of datasets in a pool)
- Destination location: On a different System (select SSH Connection = SSH-Test)
- SSH-Test: Name = SSH-Test, Host = Target-IP, Port = 22, Username = admin (is equivalent to root on target system and has rights for SSH), Private Key = exported Private Key from target system, Remote Host Key = discovered key, Cipher = Fast, Connect Timeout = 10
That's it for the connection.
 

edisondotme

Cadet
Joined
Aug 12, 2019
Messages
5
I was having this issue as well and I finally figured out my solution, not sure if this is your issue, but maybe this will help anyone viewing this thread in the future.

In sum, the ssh key pair on the client system must correspond to root's public key on the remote system.
Make sure the SSH Connection you setup uses that SSH Keypair.

I mistakenly thought the key pairs needed to be the same on both systems in the System > SSH Kepairs section in the GUI. TrueNAS-12.0-U8
SSH TrueNAS documentation
 

Attachments

  • ssh-truenas-fix.png
    ssh-truenas-fix.png
    313.2 KB · Views: 860
Top