Solved

unix ssh down

Posted on 2014-01-28
6
394 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 37

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
nagios remote hosts 9 56
linux installs 6 60
how to rebuild XFS volume from LV 19 65
Linux script delete files 3 34
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,…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

809 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