Solved

unix ssh down

Posted on 2014-01-28
6
398 Views
Last Modified: 2014-02-04
I ran the below command and after few mins its stuck and i was unable to connect to my ssh . Please advice how to fix it.

pi@raspberrypi /etc/network $ sudo /etc/init.d/networking restart
[warn] Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
[....] Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/b8:27:eb:88:c5:23
Sending on   LPF/eth0/b8:27:eb:88:c5:23

Thanks
0
Comment
Question by:magento
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 8

Expert Comment

by:Surrano
ID: 39817059
Does it respond to ping?
Can you use wireshark or another tool on the same network segment (same switch) in promiscuous mode, i.e. capture all packets, not only those intended to the observer?
Can you connect physically to raspberrypi and check:
- /var/log/syslog
- /etc/ssh/sshd_config
- ifconfig -a
- uname -a
- /etc/issue

Hint: you have an SD card as storage, right? If you can't repair the network, you can:
- save all these symptoms to the sd card
- shutdown pi
- insert the sd card to your notebook/desktop and send the symptoms from there.
0
 
LVL 5

Author Comment

by:magento
ID: 39817067
Ah..i have broken everything ?

I cant ping from another ssh server.

Thanks
0
 
LVL 8

Assisted Solution

by:Surrano
Surrano earned 250 total points
ID: 39817108
Not broken just down. Or something changed in network config, e.g. received a different IP from dhcp server. Can you check the list of clients of your dhcp server? (in my home office, it's simply the wifi router)

Simplest and most effective way would be to connect physically and check. Right now it has occurred to me that you'd need to attach a keyboard (usb should do) and a display-- but this thing has no option to attach a display, eh? Well then, can you power it off, remove the sdcard and check its contents (don't know about file system type; best would be to use a linux desktop for this). If you can send us the requested files (not the commands per se) then maybe we can propel this forward

Or, if you have nothing to lose, reinstall:
- make a backup of your sdcard contents (you'll be able to copy everything back to pi once network will be up)
- download a brand new OS image:
http://www.raspberrypi.org/downloads
- write it to the sd card as written on the page (use formatter and unzip package)
- Pi should be able to boot afterwards.
- Once network is up, recover everything you needed from the backup.
0
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
LVL 38

Accepted Solution

by:
Gerwin Jansen, EE MVE earned 250 total points
ID: 39819275
Hello Magento: how about just rebooting the RPI? Did you try that? Disconnect and connect power again, knowing that it may damage your SD card...

@Surrano - "usb should do"? RPI only has USB available for attaching keyboard, no others. And "but this thing has no option to attach a display"? RPI has HDMI -> display.
0
 
LVL 5

Author Closing Comment

by:magento
ID: 39819948
Thanks both of you.
0
 
LVL 8

Expert Comment

by:Surrano
ID: 39831917
@Gerwin: oops, I forgot HDMI :) forced myself to do quite some brainstorming :)
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question