Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a 3560 switch that I have configured to accept SSH logins, and this works fine. However I cannot get Rancid to complete the login process to any of my switches using SSH. I get a timeout error after a minute or so. Telnet logins work fine with the same username and password.

Here is my rancid setup in .cloginrc:

add user * {myuser}
add password * {strongAccessPassword}  {strongEnablePassword}
add method * ssh telnet

Then, when I run bin/clogin 10.10.1.10 I get:

# bin/clogin 10.10.1.10
10.10.1.10
spawn ssh -c 3des -x -l myuser 10.10.1.10

###############################################
Please authenticate.
###############################################

Password: 
Error: TIMEOUT reached

Again, when I do this using telnet as my preferred mothod in .cloginrc, it works without issue.

share|improve this question
    
By the way, someone should feel free to add the "rancid" tag, I couln't add it myself since I'm a newb. –  Lars Aug 10 '12 at 13:52
    
It looks like rancid failing at parsing the switch' answer. Does rancid works if you choose telnet? What is the output of manually connecting to the switch? Does it prompt for a username? –  petrus Aug 10 '12 at 15:07
    
Yes, the test works without issue using telnet. Also, the command: ssh -c 3des -x -l myuser 10.10.1.10 works if I run it manually. –  Lars Aug 13 '12 at 9:29

1 Answer 1

up vote 2 down vote accepted

I've seen this when the SSH server's responses confuse RANCID's clogin script in some way - it doesn't realize that it's time to send the password.

Try dropping the custom Please authenticate banner.

share|improve this answer
    
Removing the banner resolved the issue. Thanks! –  Lars Aug 14 '12 at 8:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.