[rancid] .cloginrc add method hostname {ssh:-port} for mtlogin/mtrancid?
heasley
heas at shrubbery.net
Wed Jun 3 16:36:21 UTC 2015
Wed, Jun 03, 2015 at 05:15:18PM +0100, Lukasz Sokol:
> On 03/06/15 17:06, heasley wrote:
> > Wed, Jun 03, 2015 at 04:42:09PM +0100, Lukasz Sokol:
> >> I found the relevant line next to the previous backport, but this
> >> change causes all ssh contacts to fail even the 'up' test.
> >
> > What do you mean by 'up test'? show us actual error transcripts. If
> > I remove the '+ct' bit from the username, I can connect and pass
> > authentication to a cisco.
> >
>
> With the patch, after rancid-run I get an email that the run was unsuccessful.
>
> >> what is wrong with compare ?
> >
> > match allows the glob; ssh* -> ssh, ssh:nnn
> >
>
> mtlogin -d to a host that worked before the patch :
>
> rancid at george:~$ bin/mtlogin -d workinghost
> workinghost
seems that you truncated the output here; the spawn, etc are missing. we'd
need to see the output leading up to this.
> Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?' is ''. Not usable, disabling the performance booster.
> Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?' is 'HOST IDENTIFICATION HAS CHANGED* (yes/no)\?'. Activating booster.
> Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED[^
> ]+' is 'HOST IDENTIFICATION HAS CHANGED*'. Activating booster.
> Gate keeper glob pattern for 'Offending key for .* \(yes/no\)\?' is 'Offending key for * (yes/no)\?'. Activating booster.
> Gate keeper glob pattern for 'Login:' is 'Login:'. Activating booster.
> Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating booster.
> Gate keeper glob pattern for '^Confirm seeing above note' is 'Confirm seeing above note'. Activating booster.
> Gate keeper glob pattern for '] > ' is '] > '. Activating booster.
>
> expect: does "" (spawn_id exp0) match glob pattern "Connection refused"? no
> "Unknown host\r\n"? no
> "Host is unreachable"? no
> "No address associated with name"? no
> "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no
> "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no
> "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no
> "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no
> "Login:"? Gate "Login:"? gate=no
> "[Pp]assword:"? Gate "?assword:"? gate=no
> "^Confirm seeing above note"? Gate "Confirm seeing above note"? gate=no
> "Password incorrect"? no
> "] > "? Gate "] > "? gate=no
> "denied"? no
> "\r\n"? no
>
> # it appears stuck so
> # I pressed ^D here
>
> expect: read eof
> expect: set expect_out(spawn_id) "exp0"
> expect: set expect_out(buffer) ""
> send: spawn id exp0 not open
> while executing
> "send_user "\nError: Couldn't login\n""
> invoked from within
> "expect {
> "Connection refused" {
> catch {close}; catch {wait};
> sleep 0.3
> expect eof
> send_user "\nError: Connection Refused\n"; wait; retu..."
> (procedure "login" line 72)
> invoked from within
> "login $router $ruser $userpswd $passwd $prompt $cmethod $cyphertype $identfile"
> ("foreach" body line 87)
> invoked from within
> "foreach router [lrange $argv $i end] {
> set router [string tolower $router]
> send_user "$router\n"
>
> # Figure out prompt.
> set prompt "] >..."
> (file "bin/mtlogin" line 480)
>
>
> Hope this helps
> Lukasz
>
> ( I'll test more tomorrow, GMT/BST timezone)
More information about the Rancid-discuss
mailing list