Need help on ssh login script to cisco ios


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need help on ssh login script to cisco ios
# 1  
Old 02-11-2010
Need help on ssh login script to cisco ios

I'm trying to write a login script to ssh into a cisco switch that will run some command remotely. Similar to this expect script located here:
SSH login expect shell script to supply username and password

However, that script does not work with cisco ios. Anyway know what the best way to approach this?

Thanks
# 2  
Old 02-12-2010
Are you sure that the Cisco switch is ssh enabled? If you just ssh to the box, without the script, can you get in?
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Red Hat

ssh login using script

Hello All, I am trying to login on server using ssh script & expect.Login to server successful but after login when i hit enter it gets hanged & when pressing CTRL +C it logs me out from the server. Scripts are as below. #!/bin/bash FILE=login.txt CONNECT=sshlogin.exp SERVERNAME=$1... (2 Replies)
Discussion started by: ajaincv
2 Replies

2. Solaris

Cisco IOS VPN server IKE

How do I tell if Cisco IOS VPN server IKE is running on my solaris 10 system (1 Reply)
Discussion started by: pgsanders
1 Replies
Login or Register to Ask a Question