What image are you using, the standard Yocto or the IoT version?
To connect to ssh you first need to have an IP assigned to your board. You can assign it manually as you are doing in your script or through DHCP.
Make sure that your computer and your board are in the same network. You say that your computer’s IP address is 192.168.1.15 and if there is a way to check if your router is assigning you a static IP. To know that you can go to your router’s settings, most likely it is going to be configured in DHCP and if your computer is connected to the network you’ll see your computer in the list of leased IPs. Some routers have an option to allow the user to always receive the same IP address through DHCP. Check on your routers settings for this. Once you know your computers IP assign a proper IP to your board using ifconfig. Make sure the IP address you assign isn’t being leased by the router to another device.
Check out reply 11 from the thread you posted Using Galileo Linux over Ethernet(Telnet) and follow the suggestion on how to connect.
You can also see Re: Galileo G2 - can not become root?
Hi, I am using the IoT eglibc based image. And instead of trying to connect the board directly to the computer, I tried the other alternative of connecting the board to the router and then following the steps as listed in this http://intel-software-academic-program.com/courses/diy/Intel_Academic_-_DIY_-_InternetOfThings/IntelAcademic_IoT_03_Netw… which was specified in one of the links suggested by you. I was able to connect to the board and ssh to it as well.
Thanks for the help!