Objective
This article contains information about securing administrative access to the NetScaler appliance by using the public key authentication mechanism of Secure Shell (SSH).
Requirements
To complete the procedure in this document, the NetScaler appliance must have the following tools:- An SSH client capable of public key authentication, such as OpenSSH or PuTTY
-
A suitable key pair
Background
The SSH utility consists of various authentication mechanisms, such as password, keyboard-interactive, and public key. By default, passwords are used for authentication. However, you can significantly enhance security by generating a key pair and using it to authenticate users. This ensures that an unauthorized user must have an access to not only the private key but also the password used to encrypt it. You can also store the private key on a smart card and thereby, use true two-factor authentication.
Instructions
To secure administrative access to the NetScaler appliance by using the public key authentication mechanism of SSH, complete the following procedure:
-
If it does not exist, create the /nsconfig/ssh/authorized_keys file.
-
Run the following command to set permissions for the file:
# chmod 644 /nsconfig/ssh/authorized_keys -
Run the following command to append the public key to the /nsconfig/ssh/authorized_keys file:
# cat id_rsa.pub >> /nsconfig/ssh/authorized_keys -
Configure the SSH client to use public key authentication and make the private key file available to it.
-
Connect to the NetScaler appliance by using the SSH utility and ensure that the user is asked for the passphrase used to encrypt the private key file instead of the nsroot password.
-
As an optional step, change the root password to a completely random, complex password, and store the password at a secure location.
-
As an optional step, disable the password authentication by copying the /etc/sshd_config file to the /nsconfig/ directory and setting the PasswordAuthentication parameter to no.
Points to Note
Consider the following when making the changes:
-
Customized SSH configuration is not supported by the Citrix Technical Support. Additionally, a bad configuration might result in a lockout, which might need Return Material Authorization (RMA) of the appliance.
-
If you notice the following error message, you must set the StrictModes parameter to no in the /nsconfig/sshd_config file.
Authentication refused: bad ownership or modes for directory /flash/nsconfig -
Any change to the /nsconfig/sshd_config file requires restarting the NetScaler appliance or a SIGHUP signal for the /usr/sbin/sshd process. Citrix recommends that you use the console for changes relating to the SSH daemon.
Additional Resources
Citrix Documentation - Accessing an Appliance by Using SSH Keys and No Password
CTX109008 – How to Create a Key Pair for SSH Authentication by Using the ssh-keygen Utility
CTX109009 – How to Create a Key Pair for SSH Authentication by Using the PuTTYgen Utility
CTX114020 – The SSH authorized_keys Are Not Working
CTX120804 – How to Access the NetScaler Appliance by using the SSH Keys
Supporto Citrix
Traduzione automatica
Questo articolo ?? ¨ stato tradotto da un sistema di traduzione automatica e non ?? ¨ stata valutata da persone. Citrix fornisce traduzione automatica per aumentare l'accesso per supportare contenuti; tuttavia, articoli automaticamente tradotte possono possono contenere degli errori. Citrix non ?? ¨ responsabile di incongruenze, errori o danni derivanti dell'uso di articoli automaticamente tradotte.
Citrix技術支持
自動翻譯
這篇文章被翻譯由一個自動翻譯系統,並沒有受到人們的審查。 Citrix提供自動翻譯,增加獲得支持的內容;但是,自動翻譯的文章可能可以包含錯誤。思傑不負責不一致,錯誤或損壞因使用自動翻譯的文章的結果。
Поддержка Citrix
Tradução automática
Эта статья была переведена автоматической системой перевода и не был рассмотрен людьми. Citrix обеспечивает автоматический перевод с целью расширения доступа для поддержки контента; Однако, автоматически переведенные статьи могут может содержать ошибки. Citrix не несет ответственности за несоответствия, ошибки, или повреждения, возникшие в результате использования автоматически переведенных статей.
시트릭스 지원
자동 번역
이 문서 자동 번역 시스템에 의해 번역 된 사람들에 의해 검토되지 않았다. 시트릭스는 컨텐츠를 지원하기 위해 접근을 높이기 위해 자동 번역을 제공합니다; 그러나, 자동으로 번역 기사 오류를 포함 할 수있다. 시트릭스는 자동으로 번역 된 기사의 사용의 결과로 발생하는 불일치, 오류 또는 손해에 대해 책임을지지 않습니다.