I'm trying to control my Raspberry Pi from my computer using SSH, and for what I understand I need a ethernet cable to do so, from my computer port to my Pi's port. But on my computer I only have one port for internet/ethernet cable. So if I plug in an ethernet cable between these two computers I wont get an internet connections if I understand it correctly, how can I fix this?
Do I need a ethernet cable to when using SSH to controll from main pc, or can I use a ordinary internet cable?
And do the cable need to be directly between the two computers, or can I use a switch from my main internet cable, then use 2 internet cables, one to my main pc and one to my raspberry?