after installing build-essential (not pre-installed on Minibian) it seems like ssh takes a really long time to connect. On OS X, when I press enter in the terminal, the text to enter the password would appear immediately. After installing build-essential, it takes between 5-10s for the password text to appear. Has anyone noticed similar issues?

Syslog entry with dhclient:

Aug  5 19:35:04 raspberrypi dhclient: DHCPDISCOVER on eth0 to port 67 interval 3
Aug  5 19:35:07 raspberrypi dhclient: No DHCPOFFERS received.
Aug  5 19:35:07 raspberrypi dhclient: No working leases in persistent database - sleeping.
  • Any clue in /var/log/syslog?
    – goldilocks
    Aug 5 '15 at 13:53
  • Will check asap and report back!
    – qwertz
    Aug 5 '15 at 13:54
  • There is nothing about ssh or any related stuff in syslog, only some CRON entries and dhclient
    – qwertz
    Aug 5 '15 at 16:25
  • 1
    If dhclient is having problems, so will your inet connection.
    – goldilocks
    Aug 5 '15 at 16:27
  • My inet connection works fine, I can connect to nginx no problem without delay
    – qwertz
    Aug 5 '15 at 17:40

Sounds like a DNS time out on the rPi. Check that /etc/resolv.conf is configured properly and that you can reach the DNS server(s) you have defined.

To read the contents of that file:

cat /etc/resolv.conf

To test a DNS query with your system's configuration:

nslookup stackexchange.com

To test a DNS query with an alternate name server:

nslookup stackexchange.com  # Google name server
nslookup stackexchange.com # OpenDNS name server

If none of the queries work verify if any of them respond to ping (including the name server(s) you have defined in your resolv.conf. If you are unable to ping them there's something wrong with your network settings (e.g. gateway not defined properly).

  • Thank you, I really had a unreachable dns server in my resolv.conf file :)
    – qwertz
    Aug 8 '15 at 6:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.