Solved

Linux SSH not working

Posted on 2012-03-22
5
435 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
Comment Utility
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_
Comment Utility
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
Comment Utility
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_
Comment Utility
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_
Comment Utility
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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now