Enabling the pre-login SSH banner in ESXi 5.x
search cancel

Enabling the pre-login SSH banner in ESXi 5.x

book

Article ID: 308239

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

This article provides steps to enable a pre-login SSH warning for environments where security requirements mandate a warning prior to logging in to a system via SSH.
In ESXi 5.x, OpenSSH is used to provide the SSH client and server functionality, instead of Dropbear SSH. This changes the way that SSH login prompt warnings are modified.


Environment

VMware vSphere ESXi 5.1
VMware vSphere ESXi 5.5
VMware vSphere ESXi 5.0

Cause

Resolution

To enable a pre-login SSH message in ESXi 5.x:
  1. Log in to the Local Tech Support Mode console of the ESXi host. For more information, see Using Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910).
  2. Backup the existing issue file on the ESXi host using this command:

    # cp /etc/issue /etc/issue.bkp

  3. Open the /etc/issue file using a text editor. For example, to open the file using the vi editor, run this command:

    # vi /etc/issue

    For more information on editing files on an ESXi host using a vi editor, see Editing files on an ESX host using vi or nano (1020302).

  4. Insert the message to be presented in the pre-login SSH warning to the file.
  5. Save an close the issue file.
  6. Restart the SSH daemon using this command

    /etc/init.d/SSH restart

    Note: Ensure that SSH in the preceding command is in upper case.


Additional Information



ESXi 5.x で、SSH接続時のログイン前バナー表示を有効化する方法

Impact/Risks: