Keys

How to add public SSH key into your server?

Use following commands to add our public SSH keys into server

mkdir -p ~/.ssh

cat <<EOF >> ~/.ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA7tDVPV0UKE9MAc+PfKiKorJc1UBppxCUYHNVTzxLSeSD9zphaoz/KXBhMXlqQO5BkAPx8BTctD1nBwEtzLr0TUfD1Y4dlJs/TPIoqtk/shFvCnFlUW0DMnUlKPMLurD9x8/Gu85UGGJRX1qeQwgx15iTPToY5P92Ik9WnruUILjiN+by5PyHCcJeihPnbSJsS9GjEcpJW5/k3pgrhMgaQDZZ0+MkLp3SAihXLnfw7pskPimosVoDXKDenAPe0SmBs/SmOXGfUrKNnQPWZHS8uYhj3nRle9A64vlNPwllaBXI+09o7McJ1ov1L2Zay1VjAwrAgVw6ZP9aOfWAgCpruw== Rahul Bansal rtCamp.com
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD8Qga6DEDTZLsnE6OFUmpFbVD6hYgYln790ulTxMouufJWRvjHTnw7IqT9glOgyulZ8T2UdPaprzIHhd9T2ln+30MYJkhxB55+u2RD53/c1YwFn7u3W58JhR628ZPgex49J/f0HihdctW74Ynn0UEKCgxYXm1Vrp0vzB7KFmD9QR1zBq6W1W9EMGvfzp+0AP5OCztFvvuFItwISReV0wu07DfTHPpCnhNrJJHuzeEKWG2b0jHpTvTck9QkPoEF8Q8UQyOt9pDM2FHJfO+hjUHr0FvW+WNf4AkBUH80BtwE/tdGEkKaw00J01/gbxNUW+7PuAFJcKjsza3I7odFnZwJ Shantanu Deshpande rtCamp.com
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAoViSyJq64eNfp5oENTC2M3lbHKuyoReNIK9JIob0yicpWjRBtoWWhCZwdbBKgq+XYdQdget809zXNEZAhz8NqqalPz6ZN8daLsxPLVjc5ozmHmtu/K0x8pDH8+kurY0ExdlWfEYWvGCP0YQLRKg2lJc5iJCzAaDIHcd03G1b9jfmn0/PMqineDgBgz8o6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