Forum Discussion
SSH connection lost - Cannot copy executable file into de10-nano
- 1 year ago
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
No, the de10-nano and my PC cannot ping reach each other.
From my embedded command shell, I tried to ping the ip address of de10 nano eth0, it is not working (100% packet loss).
<ping 192.168.3.136>
I also tried to ping from my Windows PowerShell of my PC, but it still failed.
I tried the ssh command shown in the screenshot, and it says connection timed out.
<ssh -vvvv 192.168.3.136>
And I think the de10 nano image is properly written to sd card, since I get the angstorm boot image when I open my puTTY session (as shown below).
So about my setup, the de10 nano is connected to
1. power source
2. RJ45 cable to an ethernet router port
3. UART to USB port cable to the USB of my PC.
And my PC is connected to
4. RJ45 cable to another port of the same ethernet router.
Is my setup right? There is a different ethernet IP address assigned to my de10 nano eth0, and a different IP address for the ethernet connected to my PC.
Provide screenshots for ifconfig result in Putty, and the ping results in cmd and putty.
- Varshasri1 year ago
New Contributor
The "ifconfig" of puTTy is shown here. The IP address of de10 nano is <192.168.3.111>
The "ipconfig" of my PC command shell is shown here. The IP address of the ethernet connected to the PC is <192.168.0.1>.
Trying to ping the de10 nano's IP address from the Embedded command shell. As you can see, it says "Request timed out". Unable to "scp" the file.
Tried pinging the IP address of my PC from my PC Embedded command shell, and it works.
Trying to ping the IP address of my PC from puTTY. As you can see 100% packet loss.
Tried to ping the IP address of my de10 nano from puTTY, and it works.
Am I doing something wrong here? Or is there an alternative way to copy the file?
I would appreciate any help in resolving this issue. Thank you.
- BXia1 year ago
Occasional Contributor
What's the usb0 after you run ifconfig in putty? Did you connect anything else on DE10-Nano?
I am also not sure if board ip address 192.168.3.111 and pc ip address 192.168.0.1 are in the same LAN segment, you need to check this. They can't ping reach to each other if they are in different LAN segment.
There is an alternative way to copy the file, use one Ethernet cable to connect PC and DE10-Nano directly, set IP address for PC and the board, you still need to make sure they are in the same segment, then ping them, test if they can reach to each other. If yes, then you can execute scp command to transfer the file.