Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS and PuTTy. bad service request ssh-connection [closed]

When I tried to access my EC2 instance using Putty, I got as error saying "bad service request ssh-connection". What did I do wrong and how can I fix this problem?

Here is what I did.

  1. Created a new instance with new key pair.
  2. PuTTy gen converted pem file into ppk file.
  3. In PuTTy, I set host name ec2-user@Public DNS(IPv4).
  4. Under Connection-SSH-Auth, I browsed for the ppk file I got earlier.
  5. I unchecked Display pre-authentication banner and checked Bypass authentication entirely.
  6. Then hit open

I should be able to access Amazon Linux Terminal but I got error, "bad service request ssh-connection"

EDIT: I am sorry if this question was off topic. Since AWS, AWS-EC2, and PuTTy were all legit categories, I thought I could ask questions about them.

like image 505
Hirotaka Nakagame Avatar asked Feb 13 '18 20:02

Hirotaka Nakagame


1 Answers

In step 3, remove ec2-user@ and only keep your public DNS.

In step 5, check pre-authentication and uncheck Bypass authentication.

like image 197
Cyrus Avatar answered Sep 19 '22 17:09

Cyrus