Discussion:
[9fans] drawterm to a cpu server without authentication
(too old to reply)
John Floren
2012-08-08 21:53:50 UTC
Permalink
I'm playing around with booting a cpu kernel in qemu, and I'd like to
be able to drawterm to it for testing stuff. However, as it is it
seems that I need to specify an auth server. sources.cs.bell-labs.com
works, but that's clunky and depending on my networking situation not
always an option.

Is there a way to boot a cpu server such that it will just accept
connections from anyone, without authentication? Sort of like how you
can connect to sources as "none", except for cpu.


john
David du Colombier
2012-08-09 05:06:41 UTC
Permalink
Post by John Floren
Is there a way to boot a cpu server such that it will just accept
connections from anyone, without authentication? Sort of like how you
can connect to sources as "none", except for cpu.
It is already implemented, but not enabled by default.

In /sys/src/cmd/cpu.c, uncomment the following line:

// { "none", noauth, srvnoauth,},

Then, you can:

aux/listen1 tcp!*!17010 cpu -R -a none

And:

cpu -h 127.1 -a none
--
David du Colombier
Loading...