Verifying that the Secure Shell Daemon is running on an ESX host
search cancel

Verifying that the Secure Shell Daemon is running on an ESX host

book

Article ID: 308602

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

For troubleshooting purposes, it may be necessary to verify if the Secure Shell Daemon (sshd) is running. This article provides you with the steps to check if the SSH Service is running on your ESX host.


Symptoms:

esx-host secure-shell-daemon secure-shell-daemon-not-running sshd-not-running ssh-service

Environment

VMware ESX 4.0.x
VMware ESX 4.1.x
VMware ESX Server 3.0.x
VMware ESX Server 3.5.x

Resolution

To verify that the Secure Shell Daemon (sshd) is running you need to log in as root to the ESX Server host. Use iLO, Drac, or another management tool to log in directly to the console.
  1. Log in to the console as root .
  2. Type ps -ef | grep sshd.
  3. Review the output.
    • If the SSH Server is running, the output appears similar to :

      [root@server]# ps -ef | grep sshd
      root 1079 1 0 Jan24 ? 00:00:00 /usr/sbin/sshd
      root 26367 26326 0 09:10 pts/0 00:00:00 grep sshd

    • If the SSH Server is not running, the output looks similar to:

      [root@server]# ps -ef | grep sshd
      root 26369 26326 0 09:11 pts/0 00:00:00 grep sshd

To start the service, ensure that it is enabled using chkconfig :
[root@server]# chkconfig --list sshd
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
If the output does not match the example above, enable sshd startup by typing:
[root@server]# chkconfig --level 2345 sshd on
Start the service by typing:
[root@server]# service sshd start


Additional Information

ESX ホスト上で Secure Shell デーモンが実行中であることを確認する