Closed tjwaterman99 closed 3 years ago
awless ssh tjw-dev --print-cli
awless ssh -h
Thanks for helping @simcap. Unfortunately, it looks like the error is raised before the print-cli
flag does any logging:
awless ssh tjw-dev --print-cli --verbose
[verbose] awless v0.1.11 - loading AWS session with profile 'default' and region 'us-west-1'
This SSH key is encrypted. Please enter passphrase for key '/Users/tomwaterman/.ssh/lastpass_id_rsa':
[error] unable to authenticate to 54.67.75.182:22 for users ["ec2-user" "ubuntu" "centos" "core" "bitnami" "admin" "root"]. Last error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
Your private key needs to be decrypted before awless ssh
can use it.
$ ssh-add ~/.ssh/<your_key>
This will ask to decrypt your key and will add it to your SSH agent session until next reboot/logout.
At this point awless ssh
should work correctly
@danielelisi Just rediscovered this issue, and your solution fixes it.
Thanks for helping!
I am trying to connect to my instance using awless.
I'm able to connect using this command:
However
awless ssh
does not work.Specifying the username and key specifically with awless also does not work.
Is there a way to discover what command
awless ssh
is using, to help debug what might be going on?