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

SSH server boot: enable announce #73

Open
lars18th opened this issue Mar 8, 2019 · 2 comments
Open

SSH server boot: enable announce #73

lars18th opened this issue Mar 8, 2019 · 2 comments
Labels
feature-request grml-release Grml ISO release specific issues

Comments

@lars18th
Copy link

lars18th commented Mar 8, 2019

Hi,

The current ssh cheat code doesn't activate any option to discover the server in the network (it only prints in the console the message You can connect with SSH to: .... And that's useless with a headless machine.

However, the GRML Live has the AVAHI-DAEMON service!
So with these commands you can announce the server in the network:

cp /usr/share/doc/avahi-daemon/examples/ssh.service /etc/avahi/services
systemctl enable avahi-daemon.service
systemctl start avahi-daemon.service

So, I suggest to do this every time the ssh cheat code is used. It's free and easy to activate!

Futhermore, you can enhance it publising the password (as an option) in the Name of the server (now the default is grml; so you can use grml (pw:<password>)

I hope you aggree with this enhancement. It will simplifies the connection of a headless server booted with GRML Live.

@jkirk
Copy link
Contributor

jkirk commented Mar 9, 2019

Hi!

Thank you for your suggestion. I like the idea. I haven't used the avahi-utils for quite some time now. But do I "guess" right (I just looked up an example :)), that one could then discover the SSH Service with the following command: avahi-browse -d local _ssh._tcp --resolve -t?

Apart from that I am not quite sure if publishing the password is good idea. Why would you want that? The password is set on boot, so it should be known to the user - and should be changed as soon as possible, of course.

/cc @mika What do you think?

@jkirk jkirk changed the title SSH sever boot: enable announce SSH server boot: enable announce Mar 9, 2019
@mika
Copy link
Member

mika commented Mar 10, 2019

I like the suggestion WRT avahi, we should definitely give this a try!

Announcing the password calls for security troubles though, that's nothing I would consider to enable as default.

@jkirk jkirk added feature-request grml-release Grml ISO release specific issues labels Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request grml-release Grml ISO release specific issues
Projects
None yet
Development

No branches or pull requests

3 participants