Replication - setting up SSH key based authentication

Status
Not open for further replies.

martijn

Dabbler
Joined
Jun 10, 2011
Messages
13
I'm using FreeNAS 8.0.1 RC2
I followed the manual at http://doc.freenas.org/index.php/Replication_Tasks.

I had to do a few extra command in CL to make "SSH key based authentication" work, without errors.
These commands are not in the manual.

The fix:
Code:
LOCAL = 192.168.100.200
REMOTE = 192.168.100.210

Make a SSH connection to REMOTE from LOCAL:

LOCAL# ssh -i /data/ssh/replication 192.168.100.210

2 errors are displayed :
 - Could not create directory '/root/.ssh'.
 - Failed to add the host to the list of known hosts (/root/.ssh/known_hosts).
 
To fix this a did:
LOCAL# mount -uw /
LOCAL# mkdir -p /root/.ssh/
LOCAL# chmod 700 /root/.ssh
LOCAL# nano /root/.ssh/known_hosts
LOCAL# ssh -i /data/ssh/replication 192.168.100.210

No errors like above on your display (hopefully :D)

REMOTE# exit
LOCAL# mount -ur /


Maybe a nice addition to the manual?
 

indivision

Guru
Joined
Jan 4, 2013
Messages
806
I'm running into the same problem. But, is the above solution a security risk?

I'm not an expert on the subject. But, making an ssh related folder 777 sounds like a risk...?
 
Status
Not open for further replies.
Top