QT-DevOps / AWSIssues

Issues with AWS
Apache License 2.0
3 stars 26 forks source link

ssh permission denied issue #85

Closed Jagannath92 closed 4 years ago

Jagannath92 commented 4 years ago

Capture Unable to login from one machine to another machine. Could you please check it. Thanks

NareshAbbanapuri commented 4 years ago

hi Jagannath please follow this steps

cd ~ ssh jenkins@ip

srmanikanta commented 4 years ago

hi jagannath Right now you are in root user home directory that is /root other than root any user doesn't have permissions to do anything over here so before execute this command ssh -i <your pem file path> jenkins@18.191.230.61 simply type cd ~ then ssh -i <your pem key> jenkins@18.191.230.61 please close the issue.

rpkoya commented 4 years ago

Hi Jagannath, In AWS when ever you want to login to a machine, you need to provide the Key Pair, which you have downloaded during Launching of Instances, So, please give the command as below to conect to the machine. ssh -i user@ipaddress

rpkoya commented 4 years ago

ssh -i user@ipaddress This will connect to your machine, please check this and let me know.