Solved

unix ssh down

Posted on 2014-01-28
6
395 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
open source backup solution 1 36
ignore other .htaccess 2 58
Intel fortran compiler (ifort) 5 38
rolling back version of firefox 1 12
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

792 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