Setup Basic Key Based Authentication In Linux
1) Create a new user to access the machine besides root and give them sudo: useradd -m -c “John Doe” john.doe usermod -aG wheel john.doe mkdir /home/john.doe/.ssh chown john.doe:john.doe /home/ben.padgett/.ssh chmod 700 /home/john.doe/.ssh passwd john.doe 2) Locally create a key to access the newly created users account: ssh-keygen -t ecdsa -b 521 ssh-copy-id -i id_ecdsa.pub john.doe@IP_ADDRESS -p PORT […]