aws-samples / aws-iot-securetunneling-localproxy

AWS Iot Secure Tunneling local proxy reference C++ implementation
https://docs.aws.amazon.com/iot/latest/developerguide/what-is-secure-tunneling.html
Apache License 2.0
77 stars 72 forks source link

Unable to SSH into remote device using local proxy #13

Closed mialo5 closed 4 years ago

mialo5 commented 4 years ago

I am not certain if this is the correct forum to post this message but i am trying to implement the end-to-end scenario of creating a secure tunnel using this localproxy sample.

I have built and deployed the localproxy binary to both an ubuntu VM (as the source) and a raspberry pi (as the destination). Both start-up and connect to the tunnel created in AWS with the corresponding tokens.

When i try to SSH (by connecting to the localhost and the port specified for the localproxy on the ubuntu VM e.g. ssh pi@localhost -p 5555) i keep getting a permission denied when typing the password field in. I have confirmed i am using the correct password but i am unable to SSH into the remote device (I believe the ECDSA fingerprint is correct as well).

Any idea?

mialo5 commented 4 years ago

I managed to figure out the issue, you need to create a public/private key pair when creating the tunnel over the internet, it doesn't work with password only.