Cisco SG Series Switch login via PSM to configuration (enable) mode
103
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 16:02 PM
Symptom
This guide has been created to assist users who deploy the Cisco ‘SG’ series of Small/Medium business devices to login and reach an elevated (privileged exec mode) configuration prompt (e.g. <routername>#) for editing the devices configuration via an SSH session.
By default users can login but then need to supply additional credentials manually in order to begin configuring the device.
These devices vary from regular Cisco iOS enterprise switches which use ‘enable’ to elevate a user account from User Exec Mode to Privileged Exec Mode. With the SG series switches, when connecting via SSH we see a ‘Login As:’ prompt, as normal, then a ‘User Name:’ prompt.
Environment
14.6 Privilege Cloud PSM PSM
Cause
These devices vary from regular Cisco iOS enterprise switches which use ‘enable’ to elevate a user account from User Exec Mode to Privileged Exec Mode. With the SG series switches, when connecting via SSH we see a ‘Login As:’ prompt, as normal, then a ‘User Name:’ prompt.
Note that during a direct SSH session to the device (using PuTTY or similar) the user account used for ‘Login As:’ can also be used as ‘User Name:’ however, when login in via PSM this seemed to create some issues.
Resolution
A solution for this was found by creating a second user account using regular iOS commands (e.g. username ciscouser privilege 1 secret k&xGc$dW7h1!). This account, used for ‘Login As:’, should not require Privilege 15 however in the customer environment tested this did not work so the account was given privilege 15.
The account used for ‘User Name:’ will require Privilege 15 for the elevated permission. As a best practice, it is advisable to create a Cisco user account with the minimum privilege for login and the second account with the elevated Privilege 15 but as mentioned, in this scenario it did not work so tests are advisable here to see if a lower privilege for login will work.
The account used for ‘User Name:’ will require Privilege 15 for the elevated permission. As a best practice, it is advisable to create a Cisco user account with the minimum privilege for login and the second account with the elevated Privilege 15 but as mentioned, in this scenario it did not work so tests are advisable here to see if a lower privilege for login will work.
The configuration is as follows:
1. Ensure the two ‘local’ accounts have been added to the cisco switch with the required privilege. In this example we use ‘ciscouser’ as the login (Logon As:) account and ‘cisco’ as the elevated (User Name:) account.
2. Add these two accounts to PVWA, if not already, for the device. Note, no ‘Logon Account’ or ‘Enable Account’ need to be associated with the account.
3. Next make a Connection Component for the connection (if this hasn’t been done already). E.g. copy the default PSM-SSH Connection Component (right-click –> copy), then click ‘Connection Component’ right-click -> Paste connection compoment then rename accordingly such as 'PSM-CiscoSGviaSSH' (In the ‘Properties’ window change the ‘ID’ value to rename the component).
4. Now edit the AutoLogonSequence for the Connection Component being used, e.g. 'PSM-CiscoSGviaSSH'. To do this, in PVWA from the left-hand side menu, click 'Administration' -> Configuration Options' -> 'Options' -> Expand 'Connection Components' -> expand the Connection Component being used (e.g. 'PSM-CiscoSGviaSSH') -> Expand 'Target Settings', expand 'Client Specific' there you will find the parameter 'AutoLogonSequence'. If this reads 'AutoLogonSequenceWithLogonAccount' either delete it and create a new one or click on it and change to 'AutoLogonSequence'
5. Next click on the Value. This will open a separate window. Edit the content of the main window so it appears as below (ensuring you replace '[enter cisco account password here]' with the actual account password):
User Name:>cisco
Password:>[enter cisco account password here]
6. Click 'OK'
7. Click 'Apply' in the bottom right-hand corner of the main PVWA window.
8. Click 'OK' once again to confirm the changes have been saved successfully.
9. Go onto the PSM and restart the Cyber-Ark Privileged Session Manager service or wait 10 minutes for a refresh.
10. Go back to PVWA and attempt to make the connection using the 'ciscouser' account.
11. If successful return to Step 5 above and update the AutoLogonSequence as follows:
User Name:>{username}
Password:>{password}
12. Repeat Steps 6 – 10. At this stage, if the account used for Login As: (e.g. ‘ciscouser’) has been assigned Privilege 1 this may fail, if it were assigned privilege 15 hopefully this will be successful.
Note, more work is needed here to verify the exact behavior as it seems that after this process the device can login using the same credentials when supplied as variables. This is useful for password rotation as opposed to hard-coding the credentials. However, this guide should provide the steps to meet the requirements of getting to a prompt where the device can be configured without entering a ‘User Name’ and ‘Password’ manually. This process may also be possible without the need for the account used for ‘User Name:’ (e.g. ‘cisco’) being added to PVWA when it’s hard-coded into the AutoLogonSequence.