Solved

Linux SSH not working

Posted on 2012-03-22
5
468 Views
Last Modified: 2012-03-22
Hi all,

I had ssh working, but it seems to have stopped.  I restarted the service and that is running.  DOes someone know how to install another ssh client or maybe what I should check for?

I believe this occured after I installed vsftpd

Thanks
0
Comment
Question by:Jack_son_
  • 3
  • 2
5 Comments
 
LVL 31

Expert Comment

by:farzanj
ID: 37753985
Which Linux distribution are you using?  Version?

If ssh stopped, it has to do with ssh server not client.  It doesn't have anything to do with vsftpd as well so I am a little confused to as what you are actually trying to do.

If it is a problem of service not starting by itself after rebooting, the solution should be simple enough but is distribution dependent.

Redhat familly command would be
chkconfig sshd on

Ubuntu family
update-rc.d sshd defaults
0
 

Author Comment

by:Jack_son_
ID: 37754588
Debian, newest release, I thing its 6.03;  I did reboot and that didnt work either.....

the service is starting but for some reason i cant access the server from ssh any longer.   are there any logs to show where the issue may be?
0
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
ID: 37754694
I did not tell you to reboot.  I said it appears that sshd doesn't start after reboot.

Issue command to check
netstat -antpu | grep 22

See if there are any sshd daemons listening

Issue command
Ubuntu family
update-rc.d sshd defaults

And reboot again to see if it works after reboot
0
 

Author Comment

by:Jack_son_
ID: 37754850
I did run this command and it is not listening on these ports; here is the error when trying to start the service:  sshd/var/run/sshd must be owned by root and nt group or world writable
0
 

Author Closing Comment

by:Jack_son_
ID: 37754935
Hi Farzanj-

with the help above I found it was a permission issue.  So this helped me find the issue.  I then applied these commands to fix the permissions:

chown root:root /var/empty/sshd
chmod 711 /var/empty/sshd
/etc/init.d/sshd start
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LINUX backups with VEEAM 8 151
AWS Central Authentication 1 101
WordPress: Debugging from my Windows 10 Desktop 6 61
block mails from a particular country in postfix 7 46
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…

713 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