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

[Snap] Implement SSH Settings #3159

Open
benfrancis opened this issue Aug 22, 2024 · 2 comments
Open

[Snap] Implement SSH Settings #3159

benfrancis opened this issue Aug 22, 2024 · 2 comments
Labels
snap Issues relating to the snap package task
Milestone

Comments

@benfrancis
Copy link
Member

In the web interface in Settings -> Developer there is an "Enable SSH" checkbox, which on other platforms enables a user to turn SSH access on and off.

E.g. see https://github.com/WebThingsIO/gateway/blob/master/src/platforms/linux-raspbian.ts#L463

@benfrancis benfrancis converted this from a draft issue Aug 22, 2024
@benfrancis benfrancis added this to the 2.0 milestone Aug 22, 2024
@benfrancis benfrancis added task snap Issues relating to the snap package labels Aug 22, 2024
@benfrancis benfrancis moved this from Product Backlog to Sprint Backlog in WebThings Gateway Oct 17, 2024
@benfrancis
Copy link
Member Author

This is a bit more complicated for Ubuntu Core. Whereas on Raspbian there is a default username and password but SSH is disabled by default, on Ubuntu Core it's the opposite. There is no default username and password but the user must associate the device with an Ubuntu One account in order to log in via SSH using an SSH key.

I'm not exactly sure what the SSH setting should do in this case. Perhaps the checkbox should be checked but disabled unless the user has manually created a local username and password after logging in with an SSH key. But is that even possible?

@ogra1
Copy link
Contributor

ogra1 commented Oct 23, 2024

Well, there is actually a setting to en/disable ssh in UbuntuCore ... see https://snapcraft.io/docs/system-options#heading--ssh but that would indeed require the snapd-control interface which we're unlikely to get access to for the snap in the global store ... Perhaps simply showing some explanation/tooltip in the UI for the global version how it is handled on core and what the user should/can do with an additional pointer to the "pro" version from a brand store that allows using this feature would be possible ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
snap Issues relating to the snap package task
Projects
Status: Sprint Backlog
Development

No branches or pull requests

2 participants