7 Replies Latest reply on Aug 4, 2015 12:20 PM by rudythecanadian

    Cannot ssh into my Edison board

    rudythecanadian

      Hello,

       

      I've search the forums here for answers to this question but so far nothing has helped and I'm hoping peeps and point me in the right direction:

       

      I'm running on OSX 10.10.4 (Yosemite) and have a brand new Edison + Arduino breakout board that I have flashed to version 159. When I run ifconfig (connected via 'screen') I get the following:

       

      root@bloom1:~# ifconfig

      lo        Link encap:Local Loopback 

                inet addr:127.0.0.1  Mask:255.0.0.0

                inet6 addr: ::1/128 Scope:Host

                UP LOOPBACK RUNNING  MTU:65536  Metric:1

                RX packets:164 errors:0 dropped:0 overruns:0 frame:0

                TX packets:164 errors:0 dropped:0 overruns:0 carrier:0

                collisions:0 txqueuelen:0

                RX bytes:12520 (12.2 KiB)  TX bytes:12520 (12.2 KiB)

       

      usb0      Link encap:Ethernet  HWaddr 02:00:86:61:58:80 

                inet addr:192.168.2.15  Bcast:192.168.2.255  Mask:255.255.255.0

                inet6 addr: fe80::86ff:fe61:5880/64 Scope:Link

                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

                RX packets:0 errors:0 dropped:0 overruns:0 frame:0

                TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

                collisions:0 txqueuelen:1000

                RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

       

      wlan0     Link encap:Ethernet  HWaddr 78:4b:87:a6:a6:3d 

                inet addr:10.0.0.31  Bcast:10.0.0.255  Mask:255.255.255.0

                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

                RX packets:1088 errors:0 dropped:0 overruns:0 frame:0

                TX packets:318 errors:0 dropped:0 overruns:0 carrier:0

                collisions:0 txqueuelen:1000

                RX bytes:123699 (120.7 KiB)  TX bytes:34902 (34.0 KiB)

       

       

      If I attempt to ssh to 10.0.0.31 I basically am stuck and eventually timeout. Even trying to http connect to my board takes a huge amount of time and doesn't always work. My network fu isn't at the super-geek level so I'm hoping someone can point me at some areas I can troubleshoot.

       

      Any help is appreciated (even a link to a RTFM ).

       

      Thanks,

      Chris.

        • 1. Re: Cannot ssh into my Edison board
          Vincenze

          Check the Getting started guide about enabling the Wi-Fi connection.

           

          Once you created a Wi-Fi connection, it shows a note on how to set the root password and enable ssh.

          • 2. Re: Cannot ssh into my Edison board
            rudythecanadian

            Hi,

             

            I might be confused. As my post shows, my wifi connection is setup and enabled. I've updated my root password though I never get that far since ssh always times out trying to make a connection.

             

            -- Chris.

            • 3. Re: Cannot ssh into my Edison board
              Vincenze

              Can you ssh to the device from the device itself?

              Connect to it via screen and

              ssh root@10.0.0.31


              10.0.0.31 is a strange address, but it depends on the settings on the router.

              Are you in the same network with a similar IP?

              Can you ping the IP?


              Can you telnet to the ssh port:

              telnet 10.0.0.31 22


              Try to configure the network again:

              configure_edison --setup


              Connect an external Wi-Fi antenna.

              • 4. Re: Cannot ssh into my Edison board
                rudythecanadian

                I can telnet to the ssh port no problem:


                MacBook-Pro:~ rudy$ telnet 10.0.0.31 22

                Trying 10.0.0.31...

                Connected to 10.0.0.31.

                Escape character is '^]'.

                SSH-2.0-OpenSSH_6.6

                 

                Protocol mismatch.

                Connection closed by foreign host.

                MacBook-Pro:~ rudy$

                 

                I can ping the ip:

                 

                MacBook-Pro:~ rudy$ ping 10.0.0.31 

                PING 10.0.0.31 (10.0.0.31): 56 data bytes

                Request timeout for icmp_seq 0

                Request timeout for icmp_seq 1

                Request timeout for icmp_seq 2

                Request timeout for icmp_seq 3

                64 bytes from 10.0.0.31: icmp_seq=4 ttl=64 time=90.122 ms

                64 bytes from 10.0.0.31: icmp_seq=5 ttl=64 time=86.312 ms

                64 bytes from 10.0.0.31: icmp_seq=6 ttl=64 time=116.763 ms

                64 bytes from 10.0.0.31: icmp_seq=7 ttl=64 time=36.606 ms

                64 bytes from 10.0.0.31: icmp_seq=8 ttl=64 time=52.022 ms

                64 bytes from 10.0.0.31: icmp_seq=9 ttl=64 time=79.393 ms

                64 bytes from 10.0.0.31: icmp_seq=10 ttl=64 time=111.526 ms

                64 bytes from 10.0.0.31: icmp_seq=11 ttl=64 time=360.393 ms


                I can ping my macbook address: 10.0.0.7 (my wifi router assigns those addresses like that).


                I've also tried reconfiguring the wifi. No resolution there.

                • 5. Re: Cannot ssh into my Edison board
                  Intel_Peter

                  That behavior is very odd. Did you try Vincenze's suggestion and ran configure_edison --setup again?

                  Most of the times the reason why SSH is not working is because a password is not set on the Edison. So, my suggestion would be to set it up with configure_edison --setup and try again. If it still doesn't work, try reflashing the board.

                   

                  Peter.

                  • 6. Re: Cannot ssh into my Edison board
                    rudythecanadian

                    I did try configure_edison --setup multiple times. I also do have a password and name set for my board.

                     

                    I'll try reflashing and see if that works .

                    • 7. Re: Cannot ssh into my Edison board
                      rudythecanadian

                      Ok I reflashed and ran setup and all is good! Thanks all!