Skip to content

Instantly share code, notes, and snippets.

@AbhishekPal401
Created October 14, 2023 19:44
Show Gist options
  • Save AbhishekPal401/95632c268c022d17888be29bdb12ee08 to your computer and use it in GitHub Desktop.
Save AbhishekPal401/95632c268c022d17888be29bdb12ee08 to your computer and use it in GitHub Desktop.
SSH to linux machines
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