[BlueOnyx:23742] Re: Easy Migrate

Richard Sidlin richard at helpinternet.co.uk
Wed Mar 11 10:38:06 -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

OK, so I ran this command and got this response on the target server:

[root at web ~]# ssh-copy-id -i /root/ssh1103.pub root at 192.168.200.45
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/ssh1103.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root at 192.168.200.45's password:

Number of key(s) added: 1

Now try logging into the machine, with:   "ssh 'root at 192.168.200.45'"
and check to make sure that only the key(s) you wanted were added.

BUT, when I run this command, I'm still prompted for a password:

[root at web ~]# ssh root at 192.168.200.45
root at 192.168.200.45's password:

Sorry about this guys!





More information about the Blueonyx mailing list