HI, All
We want to disable root user for remote loging and add a new user for ssh login to my ESXi5. I did as follows.
Firstly, Enable ssh logi via technical mode option of ESXi5 service console. Because PermitRootLogin under /etc/ssh/sshd_config is no, we think the default setting for root user ssh login is disabled.
Secondly, we connect the ESXi5 box from VI client, Select USer and group -> add a new user -> Set username, password, then check the box of grant shell access for the user.
Finally, we tried to remote ssh login into the ESXi5 Host via TeraTerm, but I failed to do it withou knowing the root cause. I fixed the problem by the follwowing workaround.
set PermitRootlogin Yes then restart ssh service.
set the new user group to root from VI client.
Then, I can login into the ESXi5 box via new user, but it is not desired way for me because I enabled root previlige for the new user.
I wonder if there is a way for adding a new user to remotely login into ESXi5 without enabling root prevlilge.