12-06-2014 05:50 AM
Hi,
I successfully configure the rancid on centos 6 but facing issue while connecting cisco switch sg-300 52 via ssh.
I enabled the SSH service over that switch. but when I try to connect that switch showing "login as:" first then "User Name:" please check following print screen.
Unable to login using clogin to switch
I want to remove "Login as" Please let me know how I can resolved this.
Best Regards,
Prasad Jadhav
Solved! Go to Solution.
12-08-2014 07:41 PM
your pics don't show, but I think I know what you mean
take a look at this thread, it should be what your looking for
SG300-10 on 1.3.7.18 Firmware has Double-Login On SSH
https://supportforums.cisco.com/discussion/12296596/sg300-10-13718-firmware-has-double-login-ssh
it refers to this pdf on page 470
SSH User Authentication
Use the SSH User Authentication page to enable SSH user authentication by
public key and/or password, and (when using authentication by public key) to add
an SSH client user that will be used to create an SSH session in an external SSH
application (like PuTTY).
Before you can add a user, you must generate an RSA or DSA key for the user in
the external SSH key generation/client application (such as PuTTY).
Automatic Login
If you use the SSH User Authentication page to create an SSH username for a user
who is already configured in the local user database. You can prevent additional
authentication by configuring the Automatic Login feature, which works as
follows:
• Enabled—If a user is defined in the local database, and this user passed
SSH Authentication using a public-key, the authentication by the local
database username and password is skipped.
NOTE The configured authentication method for this specific management
method (console, Telnet, SSH and so on) must be Local (i.e. not RADIUS or
TACACS+). See Management Access Method for more details).
• Not Enabled—After successful authentication by SSH public key, even if
the username is configured in the local user database, the user is
authenticated again, as per the configured authentication methods,
configured on the Management Access Authentication page.
12-08-2014 07:41 PM
your pics don't show, but I think I know what you mean
take a look at this thread, it should be what your looking for
SG300-10 on 1.3.7.18 Firmware has Double-Login On SSH
https://supportforums.cisco.com/discussion/12296596/sg300-10-13718-firmware-has-double-login-ssh
it refers to this pdf on page 470
SSH User Authentication
Use the SSH User Authentication page to enable SSH user authentication by
public key and/or password, and (when using authentication by public key) to add
an SSH client user that will be used to create an SSH session in an external SSH
application (like PuTTY).
Before you can add a user, you must generate an RSA or DSA key for the user in
the external SSH key generation/client application (such as PuTTY).
Automatic Login
If you use the SSH User Authentication page to create an SSH username for a user
who is already configured in the local user database. You can prevent additional
authentication by configuring the Automatic Login feature, which works as
follows:
• Enabled—If a user is defined in the local database, and this user passed
SSH Authentication using a public-key, the authentication by the local
database username and password is skipped.
NOTE The configured authentication method for this specific management
method (console, Telnet, SSH and so on) must be Local (i.e. not RADIUS or
TACACS+). See Management Access Method for more details).
• Not Enabled—After successful authentication by SSH public key, even if
the username is configured in the local user database, the user is
authenticated again, as per the configured authentication methods,
configured on the Management Access Authentication page.
12-09-2014 01:58 AM
12-09-2014 11:40 AM
your welcome, glad to hear that was it
04-04-2016 11:44 PM
This thread kept showing up high on my search results as an answer to this question.
But the above wasn't what I wanted. Just incase I need to look this up again
Simply run
conf t
ip ssh password-auth
This will give you the login as prompt and then ask for a password.
No more annoying double login with
login as -> Username -> password nonsense.
found answer: https://community.spiceworks.com/topic/381579-spiceworks-ssh-to-sg300-series-switches
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide