免責事項:これは英文の記事 「Modifying the parameters like "PasswordAuthentication" to yes in sshd_config are not persistent across reboot」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。
"PasswordAuthentication" のデフォルトの値は通常、"yes" です。
VMware vSphere ESXi 8.0.1 以前
sshd_config ファイルを直接変更した場合、その変更内容は再起動で失われます。
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config!/bin/sh ++group=host/vim/vmvisor/boot# local configuration options. Note: modify at your own risk! If you do/use anything in this# script that is not part of a stable API (relying on files to be in# specific places, specific tools, specific output, etc) there is a# possibility you will end up with a broken system after patching or# upgrading. Changes are not supported unless under direction of# VMware support.# Note: This script will not be run when UEFI secure boot is enabled.sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_configexit 0注: ESXi 8.0.2 以降では /etc/ssh/sshd_config を直接変更することはサポートされません。サポートされる変更方法は Configurable properties of SSH Server on ESXi 8.0.2 or later を参照してください。