Find the answer to your Linux question:
Results 1 to 7 of 7
Hi ... When i listen ssh using " ssh localhost" command.... I am getting following error. ssh: connect to host localhost port 22: Connection refused please help me as early ...
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3

    Question SSH Help

    Hi ...

    When i listen ssh using "ssh localhost" command....
    I am getting following error.

    ssh: connect to host localhost port 22: Connection refused

    please help me as early as possible

  2. #2
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    Probably you don't have the ssh daemon started, or you're connecting to the wrong port.
    You can check ps -e|grep ssh to see whether sshd is running, and the /etc/ssh/sshd_config file will specify which port it uses.
    Stand up and be counted as a Linux user!

  3. #3
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3
    Yes ssh service is not started.
    I have a suse linux... to start ssh service what i will have to do????
    In YAST, it is not showing any ssh service.

    i opened /etc/ssh/sshd_config file... it is empty file.

    So what should i do now?

  4. #4
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    Check that you have an ssh server installed. OpenSSH is the most common.
    Stand up and be counted as a Linux user!

  5. #5
    Linux Engineer rong's Avatar
    Join Date
    Feb 2005
    Location
    California
    Posts
    803
    As far as I know sshd is installed automatically. I'm on version 10.2 and it's installed. So when you got to YAST > Software Management and search 'ssh' there is nothing?
    registered Linux user #388382

    Have you checked here first?

  6. #6
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3
    Hi ...

    I have checked.... In Yast->Software Management OpenSSH is there. But all the installed programs are listed in BLACK colour but OpenSSH is in shown RED Colour.. Is there any significance of that????

    Does SSH server need to be started manually??? or any modification in any configuration file???

    Any suggestion ??? I am not getting what should I do....

  7. #7
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Location
    Laurasia
    Posts
    624
    What does this return?
    Code:
    root # /etc/init.d/sshd status
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...