Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#90 ssh login failed

v1.0 (example)
closed-fixed
nobody
2
2014-08-23
2012-03-22
kezeodsnx
No

I was using 3.3 before, and can't login after connected. Upgrade to 3.4 did not help. No special setting on PAC, only "Host" and "user/password" specified.
My OS is ubuntu 1004. Using manual login has no problem. Hope to have some guides on this problem. Debug log is as the following:

CONNECTING WITH 'ap - 219' =->

[pac_conn(28986)][219][ap - 219]: !!_PAC_AUTH_[pac_PID28814_n6]!!
[pac_conn(28986)][219][ap - 219]: SPAWNING:ssh -p 22 -x -g admin@192.168.0.219
[pac_conn(28986)][219][ap - 219]: SPAWNED:'ssh -p 22 -x -g admin@192.168.0.219' (PID:28986)
Starting EXPECT pattern matching...
at /usr/share/perl5/Expect.pm line 560
Expect::expect('Expect=GLOB(0x9e04738)', 40, 'ARRAY(0x9e4d750)', 'ARRAY(0x9e4d830)', 'ARRAY(0x9e4d9d0)', 'ARRAY(0x9e4b5f0)', 'ARRAY(0x9e4b710)', 'ARRAY(0x9e4b8c0)', 'ARRAY(0x9e4bb10)', ...) called at /opt/pac/lib/pac_conn line 1010
spawn id(3): list of patterns:
#2: -eof `'
#3: -re `^.+continue connecting \\((.+)\\/(.+)\\)\\?\\s*$'
#4: -re `Offending .*key in (.+)\\:(\\d+)'
#5: -re `([l|L]ogin|[u|u]suario|[u|U]ser-?[n|N]ame|[u|U]ser):\\s*$'
#6: -re `([p|P]ass|[p|P]ass[w|W]or[d|t]|ontrase.a|Enter passphrase for key \'.+\'):\\s*$'
#7: -re `[#%\\$>]|\\:\\/\\s*$'

spawn id(3): Does `'
match:
pattern #2: -eof `'? No.
pattern #3: -re `^.+continue connecting \\((.+)\\/(.+)\\)\\?\\s*$'? No.
pattern #4: -re `Offending .*key in (.+)\\:(\\d+)'? No.
pattern #5: -re `([l|L]ogin|[u|u]suario|[u|U]ser-?[n|N]ame|[u|U]ser):\\s*$'? No.
pattern #6: -re `([p|P]ass|[p|P]ass[w|W]or[d|t]|ontrase.a|Enter passphrase for key \'.+\'):\\s*$'? No.
pattern #7: -re `[#%\\$>]|\\:\\/\\s*$'? No.

Please login:
spawn id(3): Does `\r\nPlease login: '
match:
pattern #2: -eof `'? No.
pattern #3: -re `^.+continue connecting \\((.+)\\/(.+)\\)\\?\\s*$'? No.
pattern #4: -re `Offending .*key in (.+)\\:(\\d+)'? No.
pattern #5: -re `([l|L]ogin|[u|u]suario|[u|U]ser-?[n|N]ame|[u|U]ser):\\s*$'? YES!!
Before match string: `\r\nPlease '
Match string: `login: '
After match string: `'
Matchlist: (`login')
Calling hook CODE(0x9e4b630)...
[pac_conn(28986)][219][ap - 219]: LOGIN:admin
Sending 'admin\n' to spawn id(3)
at /usr/share/perl5/Expect.pm line 1249
Expect::print('Expect=GLOB(0x9e04738)', 'admin
') called at /opt/pac/lib/pac_conn line 403
main::send_slow('Expect=GLOB(0x9e04738)', 'admin
') called at /opt/pac/lib/pac_conn line 883
main::__ANON__('Expect=GLOB(0x9e04738)') called at /usr/share/perl5/Expect.pm line 759
Expect::_multi_expect(40, 'ARRAY(0x9e4bba0)', 'ARRAY(0x9631028)') called at /usr/share/perl5/Expect.pm line 564
Expect::expect('Expect=GLOB(0x9e04738)', 40, 'ARRAY(0x9e4d750)', 'ARRAY(0x9e4d830)', 'ARRAY(0x9e4d9d0)', 'ARRAY(0x9e4b5f0)', 'ARRAY(0x9e4b710)', 'ARRAY(0x9e4b8c0)', 'ARRAY(0x9e4bb10)', ...) called at /opt/pac/lib/pac_conn line 1010
Continuing expect, restarting timeout...

spawn id(3): Does `'
match:
pattern #2: -eof `'? No.
pattern #3: -re `^.+continue connecting \\((.+)\\/(.+)\\)\\?\\s*$'? No.
pattern #4: -re `Offending .*key in (.+)\\:(\\d+)'? No.
pattern #5: -re `([l|L]ogin|[u|u]suario|[u|U]ser-?[n|N]ame|[u|U]ser):\\s*$'? No.
pattern #6: -re `([p|P]ass|[p|P]ass[w|W]or[d|t]|ontrase.a|Enter passphrase for key \'.+\'):\\s*$'? No.
pattern #7: -re `[#%\\$>]|\\:\\/\\s*$'? No.

admin
password :
spawn id(3): Does `admin\r\npassword : '
match:
pattern #2: -eof `'? No.
pattern #3: -re `^.+continue connecting \\((.+)\\/(.+)\\)\\?\\s*$'? No.
pattern #4: -re `Offending .*key in (.+)\\:(\\d+)'? No.
pattern #5: -re `([l|L]ogin|[u|u]suario|[u|U]ser-?[n|N]ame|[u|U]ser):\\s*$'? No.
pattern #6: -re `([p|P]ass|[p|P]ass[w|W]or[d|t]|ontrase.a|Enter passphrase for key \'.+\'):\\s*$'? No.
pattern #7: -re `[#%\\$>]|\\:\\/\\s*$'? No.

[pac_conn(28986)][219][ap - 219]: CLOSE:TIMEOUT:40 seconds trying to connect or get prompt!!
[pac_conn(28986)][219][ap - 219]: DISCONNECTING
[pac_conn(28986)][219][ap - 219]: DISCONNECTED

<-= DISCONNECTED (PRESS <ENTER> TO RECONNECT)

Discussion

  • Hi!
    Thanks for trying PAC!!

    I found your problem: it's in the pattern that PAC is expecting as a "login" string.
    Please, open PAC and:
    - Under "Preferences" -> "PAC Main Options" -> "PASSWORD prompt", use the next string (without the quotes!!):
    "([p|P]ass|[p|P]ass[w|W]or[d|t]|[c|C]ontrase.a|Enter passphrase for key '.+')\s*:\s*$"

    Try and let me know! :)
    - David.

     
    • priority: 5 --> 2
     
  • kezeodsnx
    kezeodsnx
    2012-03-22

    It works. Thanks a lot for help. Great tool.

    Btw, after login my prompt is "xxxx:". Also fix this by reg expr according to your feedback!

    Thanks.

     
  • Thanks to you!
    - David.

     
    • status: open --> closed-fixed