This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-AM62: [GUIDE] Build OpenSSH and connect VSCode remotely for easier development

Part Number: SK-AM62

I'm going to take a risk of being banned for not posting a question.

I have seen tons and tons of questions on how to start an SSH server and it seems to be quite hard, with rebuilding images and what not.

Additionally, being able to connect VSCode to the board directly and remotely to increase development rate is very important.

Below is the ultimate easiest way.

On the board:

Visit and get URL for latest OpenSSH: https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/

wget cdn.openbsd.org/.../openssh-9.3p1.tar.gz

tar -xvzf openssh-9.3p1.tar.gz

cd openssh-9.3p1

./configure --host="arm64"

make

make install

sudo systemctl start sshd.service

sudo systemctl status sshd.service

On your PC or Mac:

Open VSCode and follow these instructions: https://code.visualstudio.com/docs/remote/ssh

IMPORTANT

If VSCode fails to connect and you have previously been able to connect, it may be because the "known_hosts" SSH config file contains an IP with the previous key of the board.

This happens if you e.g reflash your SD.

To fix this, simply open "known_hosts" file and remove the entry with the IP of your board and then reconnect.

The "known_hosts" file can be found here on Windows: C:\Users\<username>\.ssh

Proof that it works:

Final words: Please don't ban me.

God speed!

  • Hi Aid,

    Thanks for writing this up. It really helps to improve our software offering with the SoC and SDK release process.

    May I ask, for what application development are you using AM62x SoC and how we can be of help in your design/software offering?

    Appreciate your response.

    Best Regards,

    Suren

  • Hi Aid

    We like the customers who post questions  :)  but we greatly appreciate customers who post solutions and leverage the community spirit of these forums. Thank you for sharing! 

    We do not plan to ban you :) , hope you can continue to innovate on AM62 family platforms. 

    Good day

    Cheers

    Mukul 

  • Hi Suren,

    Thank you for the encouragement. I'll gladly help when I get the opportunity.

    I am unsure of how much I can publicly reveal regarding what we do, but I can say that

    • It's innovative
    • The market exists
    • We have potential customers very interested in what we do

    But, there is a Big problem: We cannot find a chip that fits our needs.

    We have planned to contact semiconductor manufacturers and open a dialogue to see how we could get help, but also how it would benefit the semiconductor manufacturer (sales in 100k+ or 1M+ units per year).

    All of our potential customer have two problems:

    1. Developing the innovation
    2. Finding the hardware

    We have solved #1 (and continously improve it), now we're in the process of solving #2, and that's where we see e.g Texas Instrument come into the picture.

    Important Note: The potential customers we speak to have found zero alternatives to what they need and what we supply on the market, so it seems like (both what we see and what they say) that we are currently the only ones with a solution like ours.

    As you can imagine, when pushing innovation that has no alternatives, we basically have to invent everything by ourselves, and we really Really REALLY want to nail the electronics platform.

    So, with this being said, if possible, I'd love to schedule a meeting with someone, anyone (prefferably an engineer of some sort), at TI and explore what we do, what TI does, what could potentially be done together, and how to further push forward together.

    I imagine the first meeting would mainly have a purpose of exploring who at TI would be the right person to speak to based on the information I share about our initiative and our goals.

    And again, thank you for the encouragement.

    Best regards,

    Aid

  • Hi Mukul,

    Thank you for the encouragement.

    I look forward to sharing more information when I get the opportunity.

    Best regard,

    Aid