[BlueOnyx:23741] Re: Easy Migrate

Larry Smith lesmith at ecsis.net
Wed Mar 11 10:21:20 -05 2020


On Wed March 11 2020 10:01, Richard Sidlin wrote:
> > >> I ran the command and got this output:
> > >>
> > >> [root at mk-linux-03 ~]# ssh-keygen
> > >> Generating public/private rsa key pair.
> > >> Enter file in which to save the key (/root/.ssh/id_rsa):
> > >> Enter passphrase (empty for no passphrase):
> > >> Enter same passphrase again:
> > >> Your identification has been saved in /root/.ssh/id_rsa.
> > >> Your public key has been saved in /root/.ssh/id_rsa.pub.BUR Etc
> > >>
> > >> BUT - still getting this. I have rebooted both servers.
> > >>
> > >> [root at web ~]# ssh-copy-id root at 192.168.200.45
> > >> /usr/bin/ssh-copy-id: ERROR: No identities found
> > >>
> > >> Any other thoughts?
> >
> > By the looks of your prompts you are doing the "ssh-keygen" and the "ssh-
> > copy-id" on different servers. You need to do both commands as root on
> > the server that is the target for easy migrate.
> >
> > Kind regards
> > Maurice
>
> OK, so I don't quite understand that. The new (target) server is web and
> the source server is mk-linux-03.
>
> I ran:
>
> ssh-copy-id root at 192.168.200.45 on the target server. Got the no identities
> found error (192.168.200.45 being mk-linux-03)
>
> Ran this on the source server.
>
> [root at mk-linux-03 ~]# ssh-keygen
> Generating public/private rsa key pair.
> Enter file in which to save the key (/root/.ssh/id_rsa): ssh1103
> Enter passphrase (empty for no passphrase):
> Enter same passphrase again:
> Your identification has been saved in ssh1103.
> Your public key has been saved in ssh1103.pub.
>
> But you say that I should have run this on the target server? What command
> should I use in that case?
>
> Sorry about this, not too proficient in this!

Richard,

  Believe if you are actually storing the identify file undere a different
name than the default (your example above shows ssh1103.pub) then
you need to specify the name of the identity file when you run the
ssh-copy-id command with the -i <identity_file_name>.

-- 
Larry Smith
lesmith at ecsis.net



More information about the Blueonyx mailing list