cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9327
Views
10
Helpful
4
Replies

How to remove login as from ssh in cisco sg300-52 switch

prasad9920
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

phibertron
Level 1
Level 1

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

http://www.cisco.com/c/dam/en/us/td/docs/switches/lan/csbms/sf30x_sg30x/administration_guide/78-19308-01.pdf

 

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.

 

 

View solution in original post

4 Replies 4

phibertron
Level 1
Level 1

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

http://www.cisco.com/c/dam/en/us/td/docs/switches/lan/csbms/sf30x_sg30x/administration_guide/78-19308-01.pdf

 

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.

 

 

Thanks phibertron. problem resovled gr8 :)

 

Best Regards,

Prasad Jadhav

your welcome, glad to hear that was it

 

s1412934
Level 1
Level 1

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