Then yank the sdcard out, put it in another computer and create a file called ‘ssh’ in the boot folder. Shove it back into the pi and boot. Or, plug a keyboard into the pi and type the commands in from above. Or, the silver-spoon approach which explains things much more eloquently than I: