Results 1 to 5 of 5

Thread: How to check whether ssh running ?

  1. #1
    Join Date
    May 2008
    Beans
    26

    How to check whether ssh running ?

    How to check whether ssh is running or not ? (I have install ssh)

    If not how to make it run ?

  2. #2
    Join Date
    Apr 2005
    Location
    Finland
    Beans
    Hidden!
    Distro
    Hardy Heron (Ubuntu Development)

    Re: How to check whether ssh running ?

    Quote Originally Posted by deb_untu View Post
    How to check whether ssh is running or not ? (I have install ssh)

    If not how to make it run ?
    You could try to ssh into that computer from another computer, or even the same one (ssh localhost). If it's not installed, install package openssh-server.

  3. #3
    Join Date
    Nov 2008
    Beans
    37

    Re: How to check whether ssh running ?

    Why did you need to install it. Usually it is available. Open a terminal and ssh into blah, you should see a failure or something.

  4. #4
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!

    Re: How to check whether ssh running ?

    You can just open system-monitor and see if sshd is running in the processes tab.
    ssh-agent should be by default in 10.04, but sshd will not be unless you have installed openssh-server.

    You can do it in the command line or terminal with
    Code:
    ps -aux | grep ssh
    Only lines containing ssh will be shown.

    I use ssh occasionally to network the family machines, but stop sshd from running at boot time by adding the line
    Code:
    service ssh stop
    to /etc/rc.local just above the "exit 0" line. Then when I want to use my machine as a server and connect from the other machines, I start sshd with the command
    Code:
    sudo service ssh start
    for which I have set up a simpler and quicker alias of "ssh+", and then to stop it again I have an alias of "ssh-"

  5. #5
    Join Date
    May 2008
    Beans
    26

    [SOLVED] Re: How to check whether ssh running ?

    Quote Originally Posted by ajgreeny View Post
    You can just open system-monitor and see if sshd is running in the processes tab.
    ssh-agent should be by default in 10.04, but sshd will not be unless you have installed openssh-server.

    You can do it in the command line or terminal with
    Code:
    ps -aux | grep ssh
    Only lines containing ssh will be shown.

    I use ssh occasionally to network the family machines, but stop sshd from running at boot time by adding the line
    Code:
    service ssh stop
    to /etc/rc.local just above the "exit 0" line. Then when I want to use my machine as a server and connect from the other machines, I start sshd with the command
    Code:
    sudo service ssh start
    for which I have set up a simpler and quicker alias of "ssh+", and then to stop it again I have an alias of "ssh-"
    Thanks for the post. This is what I was expecting.

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
  •