Discussion:
[rancid] not logging in
A J
2010-05-20 23:47:52 UTC
Permalink
I need to make rancid use the username "admin". How do I do that?

here's my cloginrc file:
#
# Sample .clogin.rc file
#

#add user 10.2.188.12 admin
add password * password! password!
add method * ssh telnet

This is what happens when I test:

bash-3.2$ vi /usr/local/rancid/.cloginrc
bash-3.2$ /usr/local/rancid/bin/clogin 10.2.188.12
10.2.188.12
spawn ssh -c 3des -x -l rancid 10.2.188.12
Password:
Password:
Password:
***@10.2.188.12's password:
Connection closed by 10.2.188.12
spawn telnet 10.2.188.12

Error: telnet failed: couldn't execute "telnet": no such file or
directory
bash-3.2$ vi /usr/local/rancid/.cloginrc
bash-3.2$ exit
exit


thanks!
Ron Whitney
2010-05-21 17:09:41 UTC
Permalink
Post by A J
#add user 10.2.188.12 admin
add password * password! password!
add method * ssh telnet
It appears that you have the "add user" line commented out so RANCID is
ignoring it and using the default user. Remove the "#" at the beginning
of that first line.

Ron

Continue reading on narkive:
Loading...