I am trying to create a script on my computer that will ssh into my raspberry pi and automatically configure some wifi options (over usb->serial cable, with screen). I am running into issues getting ssh to give the raspberry pi it's password when it asks for it.
I tried in my .sh file: screen /dev/cu.usbserial 115200 pi raspberry cd Desktop
This opens screen, but then I have to press enter and give the pi its password and login manually. Is there any way I can configure my .sh file to give the pi it's login and password?