WiFi password input - is there an easier way on a jailbroken device?

Hi!

I recently bought an ATV2 which I jailbroke today with Seas0npass. 
It's currently connected to my network with an Ethernet cable.
I plan to switch to WiFi, but I'd rather skip "typing" a 64-random-character password into that thing using the remote.

Since the device is already jailbroken and I can access it via SSH - is there an easier way to set the WiFi password using the command line?

Thanks in advance!