Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 

Access the CLI on 300 and 500 Switches via PuTTY using SSH and Telnet

Access the CLI on 300 and 500 Switches via PuTTY using SSH and Telnet. Please see attached Knowledge Base Article #4982

Version history
Revision #:
1 of 1
Last update:
‎08-28-2014 11:07 AM
Updated by:
 
Labels (1)
Comments
New Member

We are trying to automate backups for these switches using putty with an inputfile

Something like this:

copy running-config tftp://{IP address TFTP server}/switch01-runningconfig.txt


Unfortunately we cannot automate this as there a two prompts for a user as also seen in the PDF.

Why is the switch asking twice for a username and what can be done to automatically take backups with Putty?

When TelNet login is used the username is only asked once. Unfortunately Putty does not support input files with Telnet.

Any advice on this topic is more than welcome.

Remko

Hi Remko,

Automatic login was added with the latest release. You may take a look at page 506:

http://www.cisco.com/c/dam/en/us/td/docs/switches/lan/csbms/sf30x_sg30x/administration_guide/Cisco_300Sx_v1_4_AG.pdf?mdfid=283019666

I guess you got it working as per Jody advise:

https://supportforums.cisco.com/discussion/12375366/login-ssh-without-user-name-and-password

Aleksandra

 

 

New Member

Yes, I got it working. Still one small hurlde to overcome.

With Putty you can have an input file with your commands. For some reason I cannot get this to work yet.

Without the input file I can log-on successfully to the switch but as soon as I add the input file with the command mentioned above I get a "Server sent disconnect message"

Not sure yet what is causing this.

Remko