LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-15-2012, 07:08 PM   #1
timebirds
Member
 
Registered: Mar 2012
Posts: 33

Rep: Reputation: Disabled
My SSH isn't working suddenly


Running Ubuntu 11.04.

No firewall or anything.
I'm really confused, and not being able to copy and paste on VPN is killing me.

Sorry for the lack of details, it just suddenly happened.
 
Old 03-15-2012, 08:03 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
Code:
/etc/init.d/ssh stop
/etc/init.d/ssh start
ps -Af | grep ssh
tail /var/log/syslog
tail /var/log/auth.log
What is output of these commands?

Last edited by eSelix; 03-15-2012 at 08:04 PM.
 
1 members found this post helpful.
Old 03-15-2012, 08:15 PM   #3
timebirds
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Code:
/etc/init.d/ssh stop
/etc/init.d/ssh start
ps -Af | grep ssh
the pics are in order
Attached Thumbnails
Click image for larger version

Name:	ssh start.png
Views:	53
Size:	13.8 KB
ID:	9243   Click image for larger version

Name:	ssh stop.png
Views:	35
Size:	14.1 KB
ID:	9244   Click image for larger version

Name:	ps -Af.png
Views:	37
Size:	5.3 KB
ID:	9245  
 
Old 03-15-2012, 08:18 PM   #4
timebirds
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Code:
tail /var/log/syslog
tail /var/log/auth.log
these are in order too
Attached Thumbnails
Click image for larger version

Name:	tail syslog.png
Views:	58
Size:	62.2 KB
ID:	9247   Click image for larger version

Name:	tail auth.png
Views:	54
Size:	39.9 KB
ID:	9248  
 
Old 03-15-2012, 08:35 PM   #5
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
As you see in auth.log screenshot you have bad permissions on files /etc/ssh/ssh_host_rsa_key, /etc/ssh/ssh_host_dsa_key and probably /etc/ssh/ssh_host_ecdsa_key. These files should be not accesible by other, so change permissions for example that:
Code:
chmod 0600 /etc/ssh/ssh_host_rsa_key
chmod 0600 /etc/ssh/ssh_host_dsa_key
chmod 0600 /etc/ssh/ssh_host_ecdsa_key
chown root:root /etc/ssh/ssh_host_rsa_key
chown root:root /etc/ssh/ssh_host_dsa_key
chown root:root /etc/ssh/ssh_host_ecdsa_key
And restart ssh.
 
1 members found this post helpful.
Old 03-15-2012, 08:42 PM   #6
timebirds
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Thank you so much. The community here is so helpful.
 
  


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
Using the generic kernel and having / on /dev/md0 suddenly isn't working TL_CLD Slackware 9 03-13-2012 05:42 AM
My ssh isn't working for some domains (VPN), but Virtualbox can connect Bjorne Linux - Networking 3 01-07-2011 10:35 AM
SSH keys suddenly not working GaijinPunch Linux - Networking 8 03-01-2008 07:38 PM
SSH forward from a Windows machine to a Linux machine isn't working nickj6282 Linux - Networking 3 08-13-2006 03:47 PM
Slackware10.2 suddenly isn't able to connect to internet makinavaja Linux - Networking 6 05-06-2006 11:16 AM


All times are GMT -5. The time now is 09:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration