You may want to review the Error: Server refused our key or No supported authentication methods available section of the Troubleshooting Connecting to Your Instance document. It's important to understand that if your instance is created by any any other service (like Elastic Beanstalk) and not directly from EC2, you are likely to face similar problems. Try your command with a username that is allowed to SSH to the VM and at least has read permission to the files you want to copy. One of them is working flawlessly, the other one is working when connecting through Intellij Idea, but not from Putty, but it was working at the beginning. Enter the user name in the User name box in the PuTTY Configuration window. Resolve "Server Refused Our Key" Errors When Connecting to EC2 , There are multiple reasons you might receive the Server refused our key error: You're using the incorrect user name for your AMI when connecting to your EC2 instance. If you use PuTTY to connect to your instance and get either of the following errors, Error: Server refused our key or Error: No supported authentication methods available, verify that you are connecting with the appropriate user name for your AMI. the username is not listed front of AllowUsers in /etc/ssh/sshd_config). There are permissions issues on the instance or you're missing a directory. This issue can happen if the user is no allowed to connect to the VM via SSH (e.g. In my case, I have two AWS instances. The key components of AWS are. 2011-12-27 13:53:55 Disconnected: No supported authentication methods available (server sent: publickey) this is the key which is generated on the server and at the very same moment its not being accepted by the server. Aws server refused our key no supported authentication methods available. If you use PuTTY to connect to your instance and get either of the following errors, Error: Server refused our key or Error: No supported authentication methods available, verify that you are connecting with the appropriate user name for your AMI. How to resolve Error: Server refused our key or No supported authentication methods available by Raj Gupta If you use PuTTY to connect to your instance and get either of the following errors, Error: Server refused our key or Error: No supported authentication methods available , verify that you are connecting with the appropriate user name this is a micro instance Kernel ID: aki-825ea7eb amzn-ami-2011.09.2.x86_64-ebs (ami-1b814f72) error: No supported authentication methods available (server sent:publickey,gssapi-keyex,gssapi-with-mic) How do I resolve this issue? We use cookies to ensure you get the best experience on our website. Try this: add the -l user name option to the pscp command line, with the proper username for your instance. Route 53:A DNS web service Simple E-mail Service:It allows sending e-mail using RESTFUL API call or via regular SMTP Identity and Access Management:It provides enhanced security and identity management for your AWS account Simple Storage Device or (S3):It is a storage device and the most widely used AWS service Elastic Compute Cloud (EC2): It … Enter the user name in the User name box in the PuTTY Configuration window. Server refused our key I am not sure what the problem is, I have seen the other threads regarding this problem but I haven't been able to use those threads to solve my problem.