Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: [SOLVED] how can i check if i have openssh running

  1. #1
    Join Date
    Jun 2008
    Location
    Chicago
    Beans
    202
    Distro
    Ubuntu 14.04 Trusty Tahr

    [SOLVED] how can i check if i have openssh running

    im trying to use winscp but says cant connect to the network, i try putty same error. i was looking around the forums and seen i someone had the same problem. then i guess i found out that he needed to install openssh. well me i already have it install, but dont know if its running, how can i check if its running.

  2. #2
    Join Date
    Jan 2008
    Beans
    1,532

    Re: how can i check if i have openssh running

    The ssh daemon is called 'sshd'. To see if it is running, open a terminal and type 'ps -A | grep sshd'. This will list all processes that have sshd in their names. If you see one, then the daemon is running; otherwise it is not.

  3. #3
    Join Date
    Mar 2008
    Beans
    1,755

    Re: how can i check if i have openssh running

    Use this command:

    ps aux | grep ssh


    My results:

    Code:
    jordan@einstein:~$ ps aux | grep ssh
    root      5301  0.0  0.0   5280   988 ?        Ss   Oct20   0:00 /usr/sbin/sshd
    jordan    6734  0.0  0.0   4432   540 ?        Ss   Oct20   0:04 /usr/bin/ssh-agent x-session-manager
    jordan   27014  0.0  0.0   2980   776 pts/0    S+   12:21   0:00 grep ssh
    sshd is the server

  4. #4
    Join Date
    Mar 2007
    Location
    Hillsboro, OR
    Beans
    169
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: how can i check if i have openssh running

    In the true spirit of unix, there's more than one way to do anything. I'd recommend doing something like:

    Code:
    sudo netstat -natp | grep sshd
    This should show you if sshd is running, and if it is, what ip address and port it's listening on. It outputs something like this:

    Code:
    james@poseidon [~] $ sudo netstat -natp | grep ssh
    tcp        0      0 67.207.149.257:30000     0.0.0.0:*    LISTEN 3647/sshd
    In this case, it's listening on 67.207.149.257(this is fake for obvious reasons), port 30000.
    Apollo(ss): Ubuntu 8.10, Pentium T2330, 2GB RAM, 200GB(Laptop)
    Hestia: Ubuntu 8.04.1, 2.4Ghz P4, 1GB RAM, 500GB, (SMB/FTP/Torrent) {Rebuilding}
    Poseidon: Ubuntu Server 8.04.1, 512MB, LAMP, Mail (VPS)

  5. #5
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,791

    Re: how can i check if i have openssh running

    I always use telnet to test low level stuff:
    $ telnet servernameoripaddress portnumber

    Ferinstance:
    $ telnet mylab 22
    Trying 172.24.107.10...
    Connected to mylab.example.com.
    Escape character is '^]'.
    SSH-2.0-OpenSSH_4.7

    Now I know the DNS resolves, the server is listening and the firewall allows the port through.

    Cheers,

    Herman

  6. #6
    Join Date
    Jun 2008
    Location
    Chicago
    Beans
    202
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: how can i check if i have openssh running

    fertech@fertech-desktop:~$ ps aux |grep ssh
    fertech 7851 0.0 0.0 3004 768 pts/0 S+ 14:26 0:00 grep ssh
    fertech@fertech-desktop:~$

  7. #7
    Join Date
    Jun 2008
    Location
    Chicago
    Beans
    202
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: how can i check if i have openssh running

    this is what i got back.

    fertech@fertech-desktop:~$ sudo netstat -natp | grep sshd
    fertech@fertech-desktop:~$

  8. #8
    Join Date
    Jan 2006
    Location
    United Kingdom
    Beans
    2,787
    Distro
    Kubuntu 6.06 Dapper

    Re: how can i check if i have openssh running

    Yours isn't running.

    Start it with sudo /etc/init.d/ssh start

    Mathew
    www.NewtonNet.co.uk - Now supporting IPv6!

    ~ Please don't use PM's to request assistance - post your query on the forum and share the discussion - if you've got a problem chances are you won't be the only one! ~

  9. #9
    Join Date
    Jun 2008
    Location
    Chicago
    Beans
    202
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: how can i check if i have openssh running

    fertech@fertech-desktop:~$ sudo /etc/init.d/ssh start
    [sudo] password for fertech:
    sudo: /etc/init.d/ssh: command not found

  10. #10
    Join Date
    Dec 2007
    Location
    Buenos Aires, Argentina
    Beans
    1,231
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: how can i check if i have openssh running

    Did you installed it?
    Code:
    sudo aptitude install openssh-server (ENTER)
    Live long and prosper.
    And use lotsa Linux, BSD, and Emacs.

Page 1 of 2 12 LastLast

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
  •