element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum how do i connect my rpi using ethernet cable
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 16 replies
  • Answers 8 answers
  • Subscribers 678 subscribers
  • Views 2520 views
  • Users 0 members are here
  • raspberry_pi
Related

how do i connect my rpi using ethernet cable

Former Member
Former Member over 11 years ago

hi,

I've recently bought rpi model b+ and am facing problems in connecting it to my laptop as an error occurs every time i run putty software. I'm following the instructions given in the following video.

http://www.youtube.com/watch?v=xarq3PI5zTw

 

 

 

please suggest other by whch i can connect rpi to my laptop. i do not have an external screen.

  • Sign in to reply
  • Cancel
Parents
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago

    what are the errors your getting

     

    this will help to advise you

     

    Thanks

     

    Peter

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Robert Peter Oakes

    Thank you for responding to my question.

    The error that I'm getting is "putty fatal error, the connection was refused"

    I don't know what should I do in order to establish the connection.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Robert Peter Oakes

    secure shell

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Robert Peter Oakes

    Do I need to follow steps other than the ones shown in the video in order to establish the connection by secure shell?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to Former Member

    I just created this, it should help, http://www.element14.com/community/community/raspberry-pi/blog/2014/10/03/first-time-login-top-pi-b-b-using-ssh

     

    Regards

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Robert Peter Oakes

    Hey,

    Thanks a lot for your efforts.

    I'm afraid I still am getting the same error on giving the ip address and on putting the host name it says " unable to open raspberrypi, host does not exist. "

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to Former Member

    If you connect the PI to an HDMI screen along with keyboard and a network connection

     

     

     

    Run this command

     

     

     

    pi@raspberrypi ~ $ ifconfig

     

     

     

    it should return stuff like this

     

     

     

    eth0      Link encap:Ethernet  HWaddr b8:27:eb:5f:e0:68

     

              UP BROADCAST 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)

     

     

     

    lo        Link encap:Local Loopback

     

              inet addr:127.0.0.1  Mask:255.0.0.0

     

              UP LOOPBACK RUNNING  MTU:65536  Metric:1

     

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

     

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

     

              collisions:0 txqueuelen:0

     

              RX bytes:1104 (1.0 KiB)  TX bytes:1104 (1.0 KiB)

     

     

     

    wlan0     Link encap:Ethernet  HWaddr 00:13:ef:d0:23:98

     

              inet addr:192.168.1.229  Bcast:192.168.1.255  Mask:255.255.255.0

     

              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

     

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

     

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

     

              collisions:0 txqueuelen:1000

     

              RX bytes:330166230 (314.8 MiB)  TX bytes:647233 (632.0 KiB)

     

     

     

    In my case im connected via WIFI and you can see under wlan0 my IP address

     

     

     

    You may well have a different ip

     

     

     

    Whatever you have, try to ping it from your computer, this atlest will tell you if you have connectivity

     

     

     

    The other possibility is you did not enable SSH during install so from the console you will need to follow these instructions to enable it

     

     

     

    http://www.raspberrypi.org/documentation/remote-access/ssh/

     

     

     

    This still means you will need to connect a keyboard and HDMI screen to your PI to complete the task, once that’s done you wont need the keyboard or screen

     

     

     

    Regards

     

     

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Robert Peter Oakes

    Thanks a lot Peter. I'll try with an external screen. Thanks for help image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rew
    0 rew over 11 years ago in reply to Former Member

    Hi Anjani,

     

    The "connection refused" means that there is no ssh deamon waiting for you to  connect.

     

    In the beginning, it was deemed "unsafe" to start the ssh deamon on "out-of-the-box" raspberry pi's. You had to edit a file in the boot partition, or run raspi-config on the console to enable it.

    That situation would cause the effects you're seeing.

     

    Nowadays, last few pi's I've installed, the ssh deamon is turned on by default. This eases things for you and me who are going to use the 'pi without a screen. Either I don't even have a screen-and-keyboard or it's a hassle setting it up for just a few minutes until ssh works.

     

    So are you using the official raspian image? How old?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to rew

    Hey Roger,

    I'm sorry for replying so late.

    I'm using the latest version of raspian image, the one that is available on the official site of raspberry pi.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rew
    0 rew over 11 years ago in reply to Former Member

    If you're using the right IP address and you're getting "connection refused" then that trumps my "I thought the SSH daemon was enabled by default nowadays".

     

    The fun with Linux is that you can examine the source of everything that happens to be able to say more about how things work or you you can manually cause things to happen. As in this case.

     

    If you use raspi-config it calls "update-rc.d ssh enable" to enable ssh. What this does is it creates a link from /etc/rc2.d/S02ssh to /etc/init.d/ssh .  (for completeness, it does this too in the rc3.d, rc4.d and rc5.d directories, but at this point in time those don't matter. So once you can access your raspberry pi, I recommend you dis/enable it once more with raspiconfig to prevent future surprises. )

     

    So if you can mount the sd card on another Linux machine you can create that link, and it should work.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • mikepowell
    0 mikepowell over 11 years ago in reply to rew

    I think most things have been covered here:

     

    1. Make sure the Ethernet socket of your laptop is MDI-X compatible (that means you can connect Ethernet devices directly together - in the past this was not possible except via a Ethernet switch or a hub).

    2. Find out the IP address of your Raspberry Pi. For example 192.168.1.23.

    3. Set your Windows computer to static IP, rather than via DHCP.

    4. Set your Windows computer IP address to a static address in the range 192.168.1.1 to 192.168.1.254. I normally choose 192.168.1.1.

    5. Set gateway address to be your Raspberry Pi address, 192.168.1.23.

    6. Leave DNS settings blank.

    7. Make sure the SSH service is started on Raspberry Pi. I believe the command should be service sshd start. You need a screen for this bit. You might need to research how to ensure SSH starts when Pi boots up. This should be easy to find.

    8. If you still have problems after this, switch Windows Firewall off.

    9. You should be able to login using the default username and password.

     

    I hope this works out.

     

    Regards,

    Mike.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • mikepowell
    0 mikepowell over 11 years ago in reply to rew

    I think most things have been covered here:

     

    1. Make sure the Ethernet socket of your laptop is MDI-X compatible (that means you can connect Ethernet devices directly together - in the past this was not possible except via a Ethernet switch or a hub).

    2. Find out the IP address of your Raspberry Pi. For example 192.168.1.23.

    3. Set your Windows computer to static IP, rather than via DHCP.

    4. Set your Windows computer IP address to a static address in the range 192.168.1.1 to 192.168.1.254. I normally choose 192.168.1.1.

    5. Set gateway address to be your Raspberry Pi address, 192.168.1.23.

    6. Leave DNS settings blank.

    7. Make sure the SSH service is started on Raspberry Pi. I believe the command should be service sshd start. You need a screen for this bit. You might need to research how to ensure SSH starts when Pi boots up. This should be easy to find.

    8. If you still have problems after this, switch Windows Firewall off.

    9. You should be able to login using the default username and password.

     

    I hope this works out.

     

    Regards,

    Mike.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube