I am trying to transfer some servers via ssh from an old Virtualmin installation to a new one, using ssh-key authorization.
On the “Transfer Virtual Server” page, I see hostname/port for destination server, along with user (default root) and optional password. But I don’t know the name of the source user, so that I can generate an ssh key on the origin system, and put the pubkey in the destination system’s root->authorized_keys.
Is it the admin’s name? I.e., if I’m transferring “example.com”, do I need the pubkey from the “example” user on the source machine?
Or is it the root user on both machines; thus I need the pubkey of the root user on the source machine in the destination machine’s root->authorized_keys?
As both systems are webmin based why not use webmin rpc option rather than ssh ?
the user name & password are the user name & password you use to login as root on the remote system
I would prefer to use ssh, as I trust it and know how it works.
I’m guessing that if the root password is used for Webmin RPC, it’s probably the root user’s pubkey that is used for ssh transfer – I’ll give that a try and see what happens.