If you want to setup SSH keys to allow logging in without a password, you can do so with a single command.
The first thing you’ll need to do is make sure you’ve run the keygen command to generate the keys:
ssh-keygen -t rsa
Then use this command to push the key to the remote server, modifying it to match your server name.
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'
- › Save Big on Online Privacy Protection, Samsung Tablets, & More
- › Microsoft 365 vs. Office 2021: What’s the Difference?
- › Apple WWDC 2023: How to Watch and What to Expect
- › How to Make Desktop Icons Smaller on Windows 10 or Windows 11
- › What’s New in Fedora 38
- › Microsoft PowerPoint on the Web Has a New Video Feature