-2

I have an Amazon Linux machine, where users log in and connect to other servers (Bastion server), now I have upgraded my Linux machine to.

How do I move all the users present in server1 to Server2

Things I have tried:

  1. created snapshots of Server1
  2. converted to volumes and attached it to Server2.

Please suggest what else I can do to get all users from Server1

Ricky Vijay
  • 101
  • 1
  • 8

2 Answers2

0

You should not create snapshots of the boot disk, since it contains the Operating System.

Instead, you should:

This will preserve the users' settings and SSH keys.

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
0

copied all the main files, passwd, group, and shadow files from etc and rebooted it worked.

Ricky Vijay
  • 101
  • 1
  • 8