Last active
June 28, 2024 23:34
-
-
Save devasheeshG/2fd7cfd34751b1046e8564a2f1d71d78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Create ssh pub-private keys (also compatable with github ssh auth) | |
| ssh-keygen -t rsa -b 4096 -C "devasheeshmishra4@gmail.com" | |
| ssh-keygen -t ed25519 -C "devasheeshmishra4@gmail.com" | |
| # Uploading your public key with a Linux or macOS client | |
| ssh-copy-id devasheesh@192.168.0.253 | |
| ssh-copy-id root@192.168.0.254 | |
| # Uploading your public key with a Windows client | |
| cat .ssh/id_rsa.pub | ssh devasheesh@192.168.0.253 'cat >> ~/.ssh/authorized_keys' | |
| cat .ssh/id_rsa.pub | ssh root@192.168.0.254 'cat >> ~/.ssh/authorized_keys' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment