IP Address changes when using SSHDroid
Two of the easy possible solutions:


Configure your wireless router's dhcp server to assign static IP to your phone (provide MAC address).
If you don't need internet connection when syncing data, create hotspot on phone and connect Linux machine to this access point. Phone will act as a router and will have a fixed IP (usually 192.168.43.1).


Related: Static IP Configuration