Transfer server via SSH question(s)

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?

SYSTEM INFORMATION
OS type and version Ubu 22.04
Webmin version 2.105
Virtualmin version 7.9.0 Pro

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.

Okay, sure enough – root user on both source and destination works.

source:/root/.ssh/publickey.pub → destination:/root/.ssh/authorized_keys

and use “root” (no password) and ssh on the source machine, and it all works well.

1 Like

I don’t know about file transfer but key ssh login I have
image

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.