SSH connection lost - Cannot copy executable file into de10-nano
Hello!
I was following the "my_first_hps" tutorial, to copy my executable file into the de10-nano board, and got stuck at the point where we use the following "scp" command line in the Embedded command shell. (My file name is "pulse")
<scp pulse root@192.168.3.115:/home/root>
I'm getting an SSH connection lost error - the request timed out in my Embedded command shell.
The IP address is the eth0 inet address as shown in my puTTY "ifconfig".
I rechecked my cable connections- they seem to be fine.
I have used the same method and command previously to copy the "my_first_hps" executable file into the de10-nano board and that worked. I don't know why it is not working now, or what am I doing wrong?
Is there a way to solve this ssh connection error? Or can you suggest an alternative method to copy the executable file into de10 nano?
Thank you.
Hi Varshasri
Sorry for the delay in getting back to you in this case and thanks to BXia for helping out in this case.
I suspect the issue is due to the IP address not being on the same network 192.168.3.111 vs 192.168.0.1 on your pc but it is strange when you have both PC and DE10 ethernet connected to the same router with different network. Could you check whether the IP is assigned via DHCP or static (defined by own ethernet settings) perhaps command "ip route list default" and see whether dhcp or static appear. If static you will need to change the IP manually or set back to dhcp. I think you could also go to your router page and see the list of devices IP connected to it with DHCP.
Alternatively you can follow what BXia suggested, which is to connect directly with both having same IP network and SCP in.
Thanks
Regards
Kian