Solved: so I was creating the file wrong I guess? Maybe it was missing a carriage return or something. I had googled it and someone recommended using cat > filename and then typing things in there and ctrl-c exiting. That worked but disconnected me and I had to reconnect. but then the file was there and it had what looked like the right contents.
But I deleted the cat file I created and instead used
echo /bin/sh > cat