Results 1 to 3 of 3

Thread: openssh - how to confirm if it is running

  1. #1

    openssh - how to confirm if it is running

    Still googling/reading about openssh and decided to give it a try and wanted to be sure that my computer is safe while I am still reading/learning.


    Installed openssh in Debian Testing -

    - will ssh start upon boot up?
    - how to disable ssh starting up upon boot up?
    - how to confirm if ssh is already running?


    _____________________
    Gmrnetworks.forums-free.com
    drug abuse treatment
    medifast

  2. #2
    hi,

    You can check as follows,
    1.) chkconfig --list (this will list all the service which are enable and disable)
    2.) chkconfig service-name off (will disable the service at startup)
    3.) service service-name status (will say whether the service is on or off)

  3. #3
    Newbie
    Join Date
    May 2009
    Location
    England
    Posts
    1
    Other methods to check is openssh is running:

    # ps -ef | fgrep ssh | fgrep -v fgrep

    that will check the process list to see if there is anything running with the letters ssh in it. Alternatively, and even more reliably, check to see if it is listening for incoming connections (assuming you are using the default port of 22), by:

    # netstat -at | fgrep ssh | fgrep LISTEN

    That should display one or even two entries depending whether you are listening using IPV6.

    Hope that helps,

    Martin

Similar Threads

  1. OpenSSH
    By beezlebubsbum in forum Linux - General Topics
    Replies: 7
    Last Post: 11-20-2004, 02:03 AM
  2. OpenSSH Problem
    By infinite_root in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 03-19-2004, 07:54 AM
  3. running remote command, then leave it running
    By Blaqb0x in forum Linux - General Topics
    Replies: 1
    Last Post: 10-03-2003, 10:36 PM
  4. OpenSSH 3.3
    By Aaron_Adams in forum Linux - Software, Applications & Programming
    Replies: 9
    Last Post: 06-27-2002, 04:26 AM
  5. openssh for rh 6.2
    By elovkoff in forum Linux - General Topics
    Replies: 4
    Last Post: 06-19-2002, 01:24 PM

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
  •