VMware Support Community
Apostolisep3
Contributor
Contributor
Jump to solution

admin account locked all time

Hello,

we have a strange problem with the skyline interface.

after the initial installation and configuration when i try to login at the 1st time with username admin and the password i provided during the installation i receive invalid credentials and then when i try 2nd time i receive the error the account is locked for 10mins.

Anyone facing the same issue?

Thanks!

Reply
0 Kudos
1 Solution

Accepted Solutions
AjayChananaVMwa
VMware Employee
VMware Employee
Jump to solution

Hi Apostolisep3​,

Welcome to Skyline Communities!

By default root login is disabled via ssh. You can only logged in via console first and then enable SSH login.

Since your account is locked you would require to reset and unlock account.

To reset the root password:

1. From the Console screen of the appliance when you see the PhotonOS splash screen press "e".

2. At the end of the PhotonOS boot command add "rw init=/bin/bash"

3. Press F10 to access to the command prompt

4. Type "passwd" to set the root password

5. Type "reboot -f" to reboot the appliance

To unlock root account run below command:

pam_tally2 -u root -r

To enable SSH access, perform the following steps:

1. Open the Skyline Collector console via the vSphere Client/Web Client

2. Login as root and the root password defined during deployment

3. Run 'vi /etc/ssh/sshd_config'

4. Enter 'i' to modify the file in VI editor

5. Locate the line that contains 'PermitRootLogin' and change it to 'PermitRootLogin yes'

6. Save the changes by hitting ESC + typing ':wq!'

7. Restart the sshd service by running 'service sshd restart'

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

Sincerely,
Ajay Chanana
Skyline Support Moderator
MCSE-2003/2008|RHCA|VCP-5/6/VCAP-6

View solution in original post

Reply
0 Kudos
1 Reply
AjayChananaVMwa
VMware Employee
VMware Employee
Jump to solution

Hi Apostolisep3​,

Welcome to Skyline Communities!

By default root login is disabled via ssh. You can only logged in via console first and then enable SSH login.

Since your account is locked you would require to reset and unlock account.

To reset the root password:

1. From the Console screen of the appliance when you see the PhotonOS splash screen press "e".

2. At the end of the PhotonOS boot command add "rw init=/bin/bash"

3. Press F10 to access to the command prompt

4. Type "passwd" to set the root password

5. Type "reboot -f" to reboot the appliance

To unlock root account run below command:

pam_tally2 -u root -r

To enable SSH access, perform the following steps:

1. Open the Skyline Collector console via the vSphere Client/Web Client

2. Login as root and the root password defined during deployment

3. Run 'vi /etc/ssh/sshd_config'

4. Enter 'i' to modify the file in VI editor

5. Locate the line that contains 'PermitRootLogin' and change it to 'PermitRootLogin yes'

6. Save the changes by hitting ESC + typing ':wq!'

7. Restart the sshd service by running 'service sshd restart'

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

Sincerely,
Ajay Chanana
Skyline Support Moderator
MCSE-2003/2008|RHCA|VCP-5/6/VCAP-6
Reply
0 Kudos