Solved

unix ssh down

Posted on 2014-01-28
6
391 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
  • 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 37

Accepted Solution

by:
Gerwin Jansen 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.:

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now