Provision Code Message at ssh terminal login

Hello everyone,

I get a message every time I log into the SSH terminal:

Provision Code: ######
Use this code to pair this device on https://pair.torizon.io

The code / this message is from the first setup during the development phase.
I created an edited BSP using the Torizon Core Builder, based on this BSP installed via Easyinstaller.
It seems that the message somehow slipped into the Custom BSP via the torizoncore-builder isolate command (TorizonCore Builder Tool - Commands Manual | Toradex Developer Center). Or maybe it was something else. I don’t know.

How can I remove this message?

Best regards
Gerald

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 Gerald,

To remove the provision code message that appears during SSH login, you can follow these steps:

  1. Review Custom BSP Configuration: Check the configuration files or scripts associated with your Custom BSP. Look for any remnants of the provisioning setup that may have been included during the build process. This could involve checking the startup scripts or login messages configured in the BSP.

  2. Modify Startup Scripts: Edit the startup scripts or configuration files that are executed during the SSH login process. This could involve modifying files such as .bashrc, .profile, or other initialization scripts that may contain the command to display the provision code message.

  3. Rebuild the BSP: If the message persists, consider rebuilding your BSP without the provisioning elements. This may involve revisiting the Torizon Core Builder settings and ensuring that any provisioning-related options are disabled during the build process.

  4. Consult Documentation: Refer to the documentation on Torizon Core Builder for further guidance on how to customize the BSP effectively and eliminate such messages from appearing during SSH login.

  5. Factory Reset: If all else fails, performing a factory reset of the device may clear any remnants of the initial provisioning process, including the provision code message.

By following these steps, you should be able to eliminate the unwanted message during your SSH login. If you need further assistance, feel free to reach out.

Best regards,
[Your Name]

Please, also check if these links can help you solve your problem:

TorizonCore Builder Tool - Commands Manual | Toradex Developer Center.

Provision Code: .......
Use this code to pair this device on https://pair.torizon.io

torizon@apalis-imx8-07279040:~$ cat .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.

umask 022

export LS_OPTIONS='--color=auto'
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'

# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
torizon@apalis-imx8-07279040:~$ cat .profile
# ~/.profile: executed by Bourne-compatible login shells.

if [ -f ~/.bashrc ]; then
  . ~/.bashrc
fi

# path set by /etc/profile
# export PATH

# Might fail after "su - myuser" when /dev/tty* is not writable by "myuser".
mesg n 2>/dev/null

Hi @gerko

This is just a message of the day (motd), you can just remove it.

/etc/motd

https://www.man7.org/linux/man-pages/man5/motd.5.html

Thank you very much!