server unexpectedly closed network connection in raspberry pi 2 - raspberry-pi2

I am new to Raspberry Pi. I have a Pi 2 kit model B.I am using an angry IP address and I can find Raspberry Pi's address using it. When I configure it using sudo raspi-config, make necessary changes and then say OK to reboot, I get this error in putty:
Server unexpectedly closed network connection.
How do I correct this issue?
Further, I have connected Raspberry Pi 2 with an Ethernet cable to the laptop. I have completed necessary steps like changing adapter settings, edited properties of Wi-Fi to allow other network users to connect to computers Internet connection but still I have no Internet access shown for unidentified Internet connection.
How can I solve this? Please suggest the necessary steps to be implemented

For me too many process and session running for a particular user is the cause of your problem so alternatively I logged in as root and ran the following commands:
ps -fp $(pgrep -d, -u adminuser)
pkill -9 -u adminuser
After this I can login normally in putty like ever before.

Related

ev3 ssh not working

I have followed the official documentation for setting up file sharing with a ev3 via ssh (http://www.ev3dev.org/docs/tutorials/connecting-to-ev3dev-with-ssh/ and http://www.ev3dev.org/docs/tutorials/) but I keep on running into this error:
ssh: Could not resolve hostname ev3dev.local: Name or service not known
with this command:
ssh robot#ev3dev.local
I think that I have encountered a similar error when setting up ssh with my raspberry pi but I am not sure. Does this mean that there is a problem with my router? Is there some other reason for this error? Is this a more general misconception about how ssh works?
The ssh connection seems to mostly work if I use an IP address instead but this is rather inconvenient.
Thanks for the help.
first, you need to connect you brick to the same wifi as your computer, then download PuTTY from https://www.putty.org/. after that install and open PuTTY.In this screen enter ev3dev and press enter. then the username is robot and the password is maker

Cannot remote into raspberry pi via hostname

Let me start by saying that I have no experience with Linux and this is my first attempt at getting into the IoT with a raspberry pi3. My question is why can I connect via ssh to my pi when I use the ip address but not the hostname?
After getting everything set up at home, I tried to remote in via PuTTY from my laptop. (The laptop is less than 6 months old and if I need to provide the specs on it, I can. It is running windows 10 if that matters). It worked when I entered the ip address of the pi, but when I tried again with the host name (which is clearly defined in the raspberry pi configuration) it said host does not exist. I used hostname.local and still failed.
Today, I brought the whole setup to work to try a few more scenarios. From my work desktop, which is running windows 7 and not wireless, I could remote in via hostname.local. I then tried again on a different laptop running windows 7 and it worked too. Next attempt was on another new (less than 3 months old) laptop running windows 10 and it failed to remote in via the hostname.
This would tell me that there is nothing wrong with my home network or the network at work, and it also makes me think that this has nothing to do with the pi, since other computers can resolve the hostname to the ip address and successfully login. What the hell am I doing wrong or missing?
I spent 2 nights googling and browsing forums trying to find an answer for this but cant, so instead of bashing this post, please poke me for more information you think might be helpful for a solution.
EDIT I gave my computer and PI to my cousin to fix. He installed Samba, though I don't know what it does differently. After doing more research, it sounds like the problem I was having was a DNS issue. I don't know how it was resolved by downloading samba on the pi, but I can now connect via the hostname.
So if I understand correctly it would appear that there is some particular settings on that laptop preventing you from using SSH if that is the only thing you are changing? I think this is likely to be something to do with the security settings on the laptop but Windows isn't my thing sorry.

raspberry PI not reachable from laptop intermittently

I am trying to remotely gain access to the command line of a Raspberry Pi 3 from my windows laptop on the same network using ssh. I am using Putty as the tool.
Since both my laptop and Pi are connected using my home Internet wireless connection, they are on the same network. When I try to ping the Pi from my laptop, it says destination is not reachable. However, if I keep trying for 4-5 times, it finally works. I am able to use Putty and connect to my Pi and execute some commands. However, after few minutes, I lose the connection. When I try to ping the pi, I get the message destination is not reachable.
This issue is intermittent. I used the below link to set a static IP address.
http://www.modmypi.com/blog/how-to-give-your-raspberry-pi-a-static-ip-address-update
I am able to now always connect to my pi using a fixed IP address. However, the issue still exist. I am able to ping the pi after several attempts and then after few minutes the connection drops.
I am using the ADSL2+ internet connection at home and dont see any problem with that. In my Pi, I opened the file /etc/ssh/sshd_config file to confirm the port is 22. I use my Putty to connect to my Pi using port 22.
Thanks,
Murali

Failling to ssh into Raspberry pi PuTTy showing "unable to open connection to raspberrypi.local Host does not exist!" error

I have been using my Rpi for some time now using ssh with no problems until recently when i tried to login using the default password and it refused. After several attempts i packed it away, so it happens that i wanted to use it again earlier on today and when i tried accessing it using PuTTy it gave me a "unable to open connection to raspberrypi.local Host does not exist!" error. so i got a new memory card with Noobs on it reinstalled the OS only to get the same error, "unable to open connection to raspberrypi.local Host does not exist!". i have tried all i can i need help..
I had a very similar problem (connecting from a Windows 10 PC to a Pi Zero over USB using PuTTY), and I solved it by following this guide and by using a non-OTG USB cable/adapter: http://www.circuitbasics.com/raspberry-pi-zero-ethernet-gadget/. My issue seemed to be that the Pi was getting locked into a host-state while using the OTG micro-USB to USB adapter and thus couldn't receive any commands over the "ethernet" USB connection.
Did you check your devices in your network? And did you try it with "raspberrypi" instead of raspberrypi.local?
Good luck!

Beagleboard : not able to do ssh

I connected beagleboard(BeagleBone Black rev 0A6A) via USB . I am able to access it via browser 192.168.7.2 . But I am not able to do a ssh to that board.
I was able to do ssh to the board on the yesterday and installed a emebedded java on that and it was working fine. Today when again I try to connect to that board, it's not able to connect.
Any preliminary thoughts on this issue?
I would check this forum thread.
https://groups.google.com/forum/#!msg/beagleboard/Ya2qE4repSY/q8_WkLcH5TwJ
Make sure you have putty setup correctly
https://learn.adafruit.com/ssh-to-beaglebone-black-over-usb/ssh-with-windows-and-putty
Connect via the USB-Serial adapter
SSH to 192.168.7.2 (username is root, no password)