Created
October 14, 2023 19:44
-
-
Save AbhishekPal401/95632c268c022d17888be29bdb12ee08 to your computer and use it in GitHub Desktop.
SSH to linux machines
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
| step1 : launch the ec2 machine or similar from other cloud service provider | |
| step2 : download the private key | |
| step3: ssh -i PRIVATE_KEY.pem ec2-user@<IP address> | |
| step4: above code will give warning regarding saying permissiion are bad for private key | |
| step 5: then run this command --> chmod 0400 PRIVATE_KEY.pem | |
| step 6: now you are logged in | |
| <--------------------------------------------------------------------------------------------------------------> | |
| // if you want to ssh from windows to linux machine we need to install openSHH client expilicitly as it is not available | |
| by default in windows | |
| 1. go to apps -> optional feature and look for openSHH client and install this | |
| after that u will be good to go to run ssh commands |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment