Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Banner blocking sftp #910

Open
functionpointer opened this issue Jan 7, 2025 · 1 comment
Open

Banner blocking sftp #910

functionpointer opened this issue Jan 7, 2025 · 1 comment

Comments

@functionpointer
Copy link

functionpointer commented Jan 7, 2025

Describe the problem

During manual install, a temporary login banner is installed in /root/.bashrc:

To continue using teslausb setup, edit the file /teslausb/teslausb_setup_variables.conf with ...

Instead of editing the file, i wanted to copy a pre-made version using sftp.
However, i can't because of this error:

$ sftp root@teslausb
Received message too long 724380973
Ensure the remote shell produces no output for non-interactive sessions.

After commenting out the banner, it started working.

Edit:
The error does not happen with the "pi" user. However, that user does not have permissions to overwrite the file, nor can they be added due to how the file system is mounted.

Device

Raspberry Pi Zero 2 W

OS Image

other

Car Model

Model 3

USB connection

Glove box

Logs

No response

Additional information

No response

@marcone
Copy link
Owner

marcone commented Jan 8, 2025

I usually just scp file.dat pi@teslausb:/tmp, then ssh into the Pi and copy the file from /tmp to its final destination, given that the root user is normally prohibited from login for security reasons, and enabling root login requires modifying several system settings.
Given that, I'm not inclined to make any changes accommodating this use case, but you're welcome to submit a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants