Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26

Thread: reloading ssh while setting up a server

  1. #11
    Join Date
    Dec 2008
    Location
    UK
    Beans
    434
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: reloading ssh while setting up a server

    Hi,

    Just a thought. Maybe ssh cannot start because there is an error in your ssh conf file? You could check your logs to see if there are any messages in your auth.log.

  2. #12
    Join Date
    Feb 2009
    Beans
    Hidden!

    Re: reloading ssh while setting up a server

    You must have an issue with ssh (see post above)

    sudo service ssh start

    will give you an error if there's a problem.

  3. #13
    Join Date
    Jan 2012
    Beans
    13

    Re: reloading ssh while setting up a server

    Agree it seems like something must be wrong with SSH, but
    Code:
    sudo service ssh start
    appears to work fine and returns:

    Code:
    ssh start/running, process 1548

  4. #14
    Join Date
    Jan 2012
    Beans
    15

    Re: reloading ssh while setting up a server

    what happens if you try

    Code:
     
    sudo service ssh stop
    sudo service ssh start
    I'd be curious if the ssh stop gives you an error.

    Matt

  5. #15
    Join Date
    Jan 2012
    Beans
    13

    Re: reloading ssh while setting up a server

    sudo service ssh stop returned " stop: unknown instance"

  6. #16
    Join Date
    Jan 2012
    Beans
    15

    Re: reloading ssh while setting up a server

    What does

    Code:
    sudo apt-get install openssh-server
    return?

  7. #17
    Join Date
    Jan 2012
    Beans
    13

    Re: reloading ssh while setting up a server

    Code:
    openssh-server is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
    Question -- I'm running all of these on ubuntu -- not on my local terminal. I set up the private/public keygens on my local computer already, but do I need to be running anything locally to get ssh to connect?

  8. #18
    Join Date
    Jan 2012
    Beans
    15

    Re: reloading ssh while setting up a server

    All of what we are telling you should be done on the Ubuntu server that you are trying to setup openssh-server.


    So on the same system you ran the sudo apt-get install openssh-server command you as saying if you run sudo service ssh restart you get unrecognized service?

    Matt

  9. #19
    Join Date
    Jan 2012
    Beans
    13

    Re: reloading ssh while setting up a server

    That's what I figured - just wanted to make sure.

    I get unkown instance, not unknown service, when i try to run the ssh restart command.

    I did make some changes to the SSH config to make it more secure -- could any of these be causing the issue?

    Code:
    Port 30000                           <--- change to a port of your choosing
    Protocol 2
    PermitRootLogin no
    PasswordAuthentication no
    UseDNS no
    AllowUsers demo

  10. #20
    Join Date
    Jan 2012
    Beans
    15

    Re: reloading ssh while setting up a server

    what happens if you
    Code:
    kill -9 1548
    and then try
    Code:
    service ssh start

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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