Solved

Linux SSH not working

Posted on 2012-03-22
5
457 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
linux pull logs and export FTP 4 71
open source backup solution 1 29
Linux script delete files 3 34
Bash script - Exit out of choice loop 2 30
We all know how boring and exhausting it is to transfer huge web projects developed locally to a webserver simply via FTP. The File Transfer Protocol is a really nice solution if you need to transfer small amounts of files, but if you're plannin…
Hello to you all, I hear of many people congratulate AWS (Amazon Web Services) on how easy it is to spin up and create new EC2 (Elastic Compute Cloud) instances, but then fail and struggle to connect to them using simple tools such as SSH (Secure…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

777 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