Enable Airport over SSH from SHELL???

rgbrock1

Registered
Howdy,

Does anyone know a shell command which I can issue to my iMac at home which I have SSH'd to from my work PC, which will activate my airport card?
I know it would be simple just to leave it on but for security issues I don't.
Thanks in advance.
 
you might be able to use ifconfig. I don't have airport, so I can't experiment, but it might go about like this:

run "ifconfig -a". Keep the output
turn on airport
run "ifconfig -a". One of the interfaces that was in state 'down' before will be 'up' now.
Say that interface was called 'ap0':
run "ifconfig ap0 down" to bring down airport, or "ifconfig ap0 up" to bring it back up
 
Hey there,
Well, I always use 'scselect'. This command allows you to choose a configuration (network wise) - I have different configurations for home: one with wired and wireless, one with no wire, one with no wireless. Then with scselect I can choose this remotely:
scselect 1
scselect 2
scselect 3
So you'd want to set up one configuration without the wireless, then one with (say 1 and 2). Then ssh into your machine and scselect 2 in order to switch it on, then when you're finished use scselect 1 to switch back.

Hope this helps :)
C
 
Cool! Seems like half the time when I'm thinking of a clunky way of doing something, Apple's thought of an elegant tool to do it all for me...
 
Back
Top