[BlueOnyx:27009] Re: Easy Migrate issue

Michael Stauber mstauber at blueonyx.it
Thu May 30 14:23:10 -05 2024


Hi Greg,

> I'm finally getting around to trying out the easy migrate.  Trying to 
> migrate from a 5208 to the 5211R.

Very well.

> Now, when I try to run ssh-copy-id I get an error message:
>   ERROR: No identities found
> Now, when I run the ssh-copy-id command with a -i I get ERROR: failed to 
> open ID file 'root at ipaddress.pub': No such file or directory.
> So, I did create an ssh key file for root on the source server, but I 
> keep getting the same error.  What am I missing here?


On the server that you want to migrate to (in your case: the 5211R) 
login as "admin" to the GUI. Go to "Personal Profile" / "Server Access".

There should be sliders for "SSH Keys" and "PEM Certificates". Flip at 
least the one for "SSH Keys" to on (it'll turn green if on) and save the 
changes. After a minute or less this will have generated 
/root/.ssh/id_rsa (your private SSH key) and /root/.ssh/id_rsa.pub (your 
public SSH key).

You could also do this on the command line (as root) instead and the 
command for this would be:

ssh-keygen -t rsa -b 8192

That does the same and you just confirm all suggested configurations by 
hitting return until it's done. This creates /root/.ssh/id_rsa (your 
private SSH key) and /root/.ssh/id_rsa.pub (your public SSH key) and 
uses 8192 bits for best security.

Once this is done via GUI or CLI, you can run ...

ssh-copy-id root@<migration-source>

... and that will add your SSH public key /root/.ssh/id_rsa.pub to the 
file /root/.ssh/authorized_keys on the 5208R.

This then allows you to SSH directly as root from the 5211R to the 
migration source (the 5208R) without having to enter the password every 
time.

Easy-Migrate needs this to make things simple. You can then run 
Easy-Migrate on the 5211R and it should be able to connect to the 5208R 
just fine.

-- 
With best regards

Michael Stauber


More information about the Blueonyx mailing list