Torizon Deployment Issue – SSH Password Prompt

Hello,

I am currently developing a project using Uno Platform & .NET 8.0. I’m developing the software on Linux Ubuntu through a VM on Oracle VirtualBox Manager.

Two people on my team are able to build & deploy remotely onto the device, but for me using a new laptop with a clean version of Linux Ubuntu I keep getting an SSH prompt requesting an SSH password.

I get prompted 3 times before it fails

I am able to SSH into the device easily using SSH clients, and using the Torizon Extension on VS Code I am able to connect to the verdin device and build the project, however, it fails to deploy the docker image. I’ve tried every possible password, and even tried creating a new id_rsa file on the VM, but it did not work.

I’ve tried multiple things to resolve it but I am still stuck. Can anyone advise on resolving the issue?

Hardware spec:

  • VM OS & Version: Ubuntu 22.04.5 LTS
  • HW model: Toradex Verdin iMX8M Mini
  • Torizon OS: 6.6.1
  • Processor arch: aarch64
  • Software summary

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello there!

To help you with your development on Toradex hardware using Torizon, here are a few steps you might find useful:

  1. IDE Extension Usage: Make sure you are utilizing the IDE Extension for your development work. This tool is highly recommended for application development and container deployment on Torizon. It integrates seamlessly with the Docker extension for Visual Studio Code, simplifying container management tasks. You can learn more about this here.

  2. Troubleshooting SSH Connectivity:

    • First, confirm that you can connect to your Torizon OS via SSH. This is crucial for managing your device remotely.
    • Ensure your device is properly connected to the network. A stable network connection is essential for SSH operations.
    • Double-check your IP address configuration to ensure it is correct. This can often be a simple fix for connectivity issues.

For more detailed guidance, you might find these resources helpful:

If you need further assistance with SSH authentication issues, feel free to ask!

Best regards,
Toradex AI Assistant.

Greetings @lajailat_gandh,

It’s not clear, what the issue is here.

To clarify, you can SSH into the device, but what fails is trying to deploy the Docker image from the VSCode extension to the device. Is that correct?

First of all, what’s weird is that SSH prompt. You claim you get this prompt in VSCode when using our extension? That would be strange since our extension does not open a prompt like that. When you first add the device to the VSCode extension it sets up SSH keys so a password is not required later on. Therefore, I’m not sure why you’re seeing a prompt like that.

Are there any logs from the extension in VSCode that show more information?

Without further information it sounds like something went wrong in the setup/installation of everything. Another idea, is that you said this was setup in a VM, correct? We don’t test our VSCode extension being used in a VM so I’m not sure if this is an issue or not. Your two team members that have this working, are they also using VMs?

Best Regards,
Jeremias

Hi @jeremias.tx,

Yes, I can SSH into the device but it fails to deploy.

That’s correct, I set up the SSH keys using the VSCode extension and it connects successfully. Weirdly enough the SSH prompt I get later on doesn’t work with the same password.

Yes, I am using a VM and both members on my team are using the same VM installation.

Here’s a more verbose version of the error that I get:

Starting: "ssh" -T -q -p 2225 -i "/media/sf_repos/MyProject/.conf/id_rsa" -o StrictHostKeyChecking=no -o "UserKnownHostsFile /dev/null" torizon@10.130.11.115 "/vsdbg/vsdbg --interpreter=vscode"
The pipe program 'ssh' exited unexpectedly with code 255.

Regarding the extension, all functionality through it seems to be working just fine except when I deploy. I can connect, see the containers and images, and stop them too.

I’ve had a few occasions when I run certain commands (can’t remember which ones) using an SSH client (not through VSCode extension) and I get prompted the password 3 times as well. Therefore, I don’t think it’s a problem with the extension itself, I think there’s been a misconfiguration step somewhere either on the VM or the Toradex and I’m struggling to find it.

I agree with you that something might have been done wrong in the setup and I think it has something to do with id_rsa but I’ve tried many options with no success.

I understand that it’s a confusing situation and apologies for not explaining it properly.

That’s correct, I set up the SSH keys using the VSCode extension and it connects successfully. Weirdly enough the SSH prompt I get later on doesn’t work with the same password.

When you say, you “set up the SSH keys”, did you actually do this yourself manually? The extension automatically does the key setup when you add the device via the extension. You shouldn’t need to setup the keys yourself.

Here’s a more verbose version of the error that I get:

The ssh command that is given in the errog message. What happens if you use the same/similar command yourself on the command-line. Do you get an error?

I’ve had a few occasions when I run certain commands (can’t remember which ones) using an SSH client (not through VSCode extension) and I get prompted the password 3 times as well. Therefore, I don’t think it’s a problem with the extension itself, I think there’s been a misconfiguration step somewhere either on the VM or the Toradex and I’m struggling to find it.

As you suggest that does seem to imply something in general is strange with the SSH connection in your VM if it happens even outside of VSCode.

Is there no noticeable differences between your setup and your team member’s setups? Maybe try asking them to setup for you if possible. Perhaps they’re doing something different during their setup that you are not. It’s hard to say for certain.

Best Regards,
Jeremias