LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 06: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, 07:03 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
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 07:04 PM.
 
1 members found this post helpful.
Old 03-15-2012, 07: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:	265
Size:	13.8 KB
ID:	9243   Click image for larger version

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

Name:	ps -Af.png
Views:	173
Size:	5.3 KB
ID:	9245  
 
Old 03-15-2012, 07: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:	308
Size:	62.2 KB
ID:	9247   Click image for larger version

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

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
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, 07: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



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 04:42 AM
My ssh isn't working for some domains (VPN), but Virtualbox can connect Bjorne Linux - Networking 3 01-07-2011 09:35 AM
SSH keys suddenly not working GaijinPunch Linux - Networking 8 03-01-2008 06:38 PM
SSH forward from a Windows machine to a Linux machine isn't working nickj6282 Linux - Networking 3 08-13-2006 02:47 PM
Slackware10.2 suddenly isn't able to connect to internet makinavaja Linux - Networking 6 05-06-2006 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 AM.

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