Starting ssh

Discussion in 'Programming/Scripts' started by faizanelahi09, Apr 30, 2014.

Thread Status:
Not open for further replies.
  1. faizanelahi09

    faizanelahi09 New Member

    Hello,

    I am trying to start ssh service in linux ubuntu...with the command service sshd start also i tried /etc/init.d/ssh start and also i used sudo commands..but for all the commands output is bash--(service)(sudo) command not found..

    I am logging as root.
    Please suggest me a solution to get out of this.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    try:

    sudo ssh start
     
  3. faizanelahi09

    faizanelahi09 New Member

    Same output....

    -bash: sudo : command not found
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    sorry. I meant

    sudo service ssh start
     
  5. faizanelahi09

    faizanelahi09 New Member

    Same.....

    sudo : command not found
     
  6. faizanelahi09

    faizanelahi09 New Member

    Error on ubuntu

    Hello,

    On my server i installed ubuntu and also i have bitnami application for web application purpose..
    Now while i am trying to enable ssh i used all commands with sudo;service;/etc...

    For any command the output remains same saying that sudo command not sound...
    service command not found.....
    /etc/init.d is not a directory..

    Plz share ur suggestions so that i can successfully enable ssh
    Thanks in advance.
     
  7. srijan

    srijan New Member HowtoForge Supporter

    Hi

    Proceed as follows:

    you will logged in as root then change the password of root.
    then check the status of ssh service as follows:
    For this you need to give entries of your user in /etc/sudoers file.

    Br//
    Srijan


    Br//
    Srijan
     
  8. faizanelahi09

    faizanelahi09 New Member

    Dear Srijan,

    When i entered sudo -i command.....output is -su : sudo :command not found
    then.....
    /etc/init.d/ssh status it does not returns anything.
    /etc/init.d/ssh start it does not returns anything
    /etc/sudoers output is -su: /etc/sudoers : Permission denied.


    Please suggest..

    Thanks in advance.
     
  9. srijan

    srijan New Member HowtoForge Supporter

    Which ubuntu distribution you are using?
     
  10. faizanelahi09

    faizanelahi09 New Member

    ubuntu 10.10
     
  11. sjau

    sjau Local Meanie Moderator

    10.10 doesn't support "service" yet IIRC. Use instead

    Code:
    /etc/init.d/ssh start
    
    And to always start it at bootup:

    Code:
    update-rc.d ssh defaults
    
     
  12. faizanelahi09

    faizanelahi09 New Member

    /etc/init.d ssh start doesn't return any statement........does it mean that ssh started...


    but when i tried to login that server via ssh it is not connecting.
     
  13. sjau

    sjau Local Meanie Moderator

    try:

    Code:
    /etc/init.d/ssh restart
    
    That should produce output
     
  14. faizanelahi09

    faizanelahi09 New Member

    No...:(

    Fyi please find the attached.
     

    Attached Files:

  15. sjau

    sjau Local Meanie Moderator

    weird....


    Code:
    apt-get install openssh-server
    
     
  16. faizanelahi09

    faizanelahi09 New Member

    Really weird man......
    Now it says apt-get command not found...
     

    Attached Files:

  17. sjau

    sjau Local Meanie Moderator

    what kind of system is that? I fear there's something totally wrong...
     
  18. faizanelahi09

    faizanelahi09 New Member

    I was not a part of this server while installing......
    In one VM......they installed ubuntu os and bitnami application.
     
  19. sjau

    sjau Local Meanie Moderator

    if there's not even apt-get availble as root something is really wrong IMHO. Can't help you, sorry.
     
  20. zapper911

    zapper911 New Member

    Maybe it's late. But have you tried "yum" instead of "apt-get"?
     
Thread Status:
Not open for further replies.

Share This Page