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

Humble tutorial and SSH #1702

Open
haavarpb opened this issue Sep 23, 2024 · 0 comments
Open

Humble tutorial and SSH #1702

haavarpb opened this issue Sep 23, 2024 · 0 comments

Comments

@haavarpb
Copy link

Hello,

I am in the process of setting up several turtlebot3's for educational purposes. We are using ROS2 Humble.

The tutorials assume that you can SSH into the robot knowing its IP. However, you can verify that the Humble tutorial is the first to use a generic Ubuntu Server 22 LTS image instead of the custom image provided in the other distros' tutorials.

This generic ubuntu server image uses cloud-init to set up the SSH server daemon to refuse password authentication. This can be verified by trying to ssh into a fresh ubuntu server instance.

I will try to see how I can change this behaviour myself, but I suggest you update the tutorials either by showing how to ssh into the turtlebot3 or provide a customized ubuntu server image with a cloud-init configuration that suits educational requirements.

The specific error that I get when trying to ssh user@turtlebot_ip is pubkey denied. I found that by modifying /etc/ssh/sshd_config I can uncomment line 57 PasswordAuthentication yes and changing line 62 KbdInteractiveAuthentication yes.

The ssh client was able to connect to the server by (I can't remember the exact, but the point is that you need to specify this in the client)

ssh -o PreferredAuthentication=keyboard-interactive user@turtlebot_ip

I guess the ideal state for such an educational system would be to allow entering the password the first time, and then allowing copying over public ssh keys using something like ssh-copy-id.

Atleast that's what I was thinking. Thoughts?

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

1 participant