LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-14-2015, 02:42 PM   #1
funnyman7
LQ Newbie
 
Registered: Sep 2015
Posts: 6

Rep: Reputation: Disabled
ssh fail on headless server. Raspberry Pi debian


Hello, I have troubles connecting to my Raspberry Pi, which works as wifi router.
The results are same on both connections - on wifi and by LAN - "connection reset by peer".
It is raspberry pi - so I can put SD card to my computer and see and modify the system.
It has not been used for 11 months - I am using it only this time of year. So I took it from the drawer, plugged it in and was glad that it is working. Because of that and because its vital for me here, I dont want to reinstall it - so modifying files on SD card is the only option for me.

Thank you for all your suggestions
 
Old 09-14-2015, 03:20 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,661

Rep: Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891
Welcome to LinuxQuestions.

So the pi functions except for not being able to connect via ssh? Did ssh every work?

It might help if add some additional debug information while trying to connect by adding -v to the command. Post the output:

ssh -vv pi@ip_address ( replace pi with the actual name if different)
 
Old 09-14-2015, 05:36 PM   #3
funnyman7
LQ Newbie
 
Registered: Sep 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
yes, it worked well last year.

I think something is wrong because of missing/obsolete keys or something like that. Maybe. I would try dpkg-reconfigure openssh-server, if I could log into the system.

tom@tom-ThinkPad-R61 ~ $ ssh -vv funnyman@192.168.0.1
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.0.1 [192.168.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/tom/.ssh/id_rsa type 1
debug1: identity file /home/tom/.ssh/id_rsa-cert type -1
debug1: identity file /home/tom/.ssh/id_dsa type -1
debug1: identity file /home/tom/.ssh/id_dsa-cert type -1
debug1: identity file /home/tom/.ssh/id_ecdsa type -1
debug1: identity file /home/tom/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/tom/.ssh/id_ed25519 type -1
debug1: identity file /home/tom/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.0p1 Debian-4+deb7u2
debug1: match: OpenSSH_6.0p1 Debian-4+deb7u2 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
Connection closed by 192.168.0.1
 
Old 09-14-2015, 06:04 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,661

Rep: Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891
I did read the thread where running dpkg-reconfigure might fix the problem. Not sure that deleting known_hosts will help but it is something that you can do easily. If you are using keys creating new ones might work but looks like you might be forced to log into the system.
 
Old 09-15-2015, 01:34 AM   #5
funnyman7
LQ Newbie
 
Registered: Sep 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
tom@tom-ThinkPad-R61 ~ $ sudo find /media/tom/ca07cb7e-26b6-4d91-b980-6f966c57b45b -type f -name "known_hosts"
tom@tom-ThinkPad-R61 ~ $

so, it looks like there is no known_hosts file in my system.

Is it possible to log in when reading it as SD card?
 
Old 09-15-2015, 04:33 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,661

Rep: Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891Reputation: 5891
Nope. Your going to have to figure out how to connect the Pi up to a monitor and keyboard.
 
Old 09-16-2015, 12:59 AM   #7
funnyman7
LQ Newbie
 
Registered: Sep 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
its not possible for me here. but thank you anyway.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to open Java application on headless server through SSH -X. What do I need? martdj Linux - Server 6 03-02-2015 11:31 AM
Working iTunes server for headless Debian 6 smells_of_elderberries Linux - Software 2 03-21-2013 11:42 AM
How to SSH into initramfs on headless SliTaz server penyuan Linux - Server 2 03-14-2011 06:19 AM
ssh into headless server Trio3b Linux - Server 5 01-24-2010 10:28 PM
Debian headless ftp server administered threw ssh lindylex Debian 5 08-26-2008 07:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration