Community discussions

MikroTik App
 
edspoon
just joined
Topic Author
Posts: 17
Joined: Thu Mar 08, 2007 7:19 pm
Location: Louisiana
Contact:

Password has <CR> can't get in

Tue Jun 15, 2010 5:49 pm

I changed the password on a RB this morning by copying and pasting from Excel. Immediately after saving and closing, I tried to access the RB with a paste from the SAME copy and could not get back in. Proceeded to try Winbox, telnet, mac telnet, etc, manually typing the password and copying and pasting again to no avail. While trying to figure out what happened I copied and pasted the excel cell into notepad and noticed that it included a carriage return. So it appears that the <CR> was accepted in winbox when I changed it originally, but can't be duplicated when trying to login. I have tried passing it with all the combinations I know of.... ALT013, \r, ^M, etc.

So, can anyone suggest a way to get back into this RB without going on site, wiping and reprogramming?

Thanks
Ed

P.S. Do NOT copy and paste passwords from Excel! :-\
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Password has <CR> can't get in

Wed Jun 16, 2010 11:45 am

Winbox does not accept ctrl or alt buttons, I think that password was mistyped.
If you are not able to get the correct password and there is no any other account on the router.
The only way to recover the router password by reinstall (with Netinstall and without saving old configuration).
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Password has <CR> can't get in

Wed Jun 16, 2010 11:48 am

It is not possible to paste <CR>. Maybe you have copied 'space'?
 
charliebrown
Member Candidate
Member Candidate
Posts: 130
Joined: Wed Dec 17, 2008 3:27 am

Re: Password has <CR> can't get in

Tue Aug 03, 2010 2:03 pm

Just done this myself in the middle of a major upgrade to a remote site *smacks head* Did you ever find what was added to the password? I'd rather not netinstall on a remote site in the morning
 
edspoon
just joined
Topic Author
Posts: 17
Joined: Thu Mar 08, 2007 7:19 pm
Location: Louisiana
Contact:

Re: Password has <CR> can't get in

Tue Aug 03, 2010 4:21 pm

Nope. I don't know why no one can tell us what char or ascii code gets inserted, but we had to net install. :(
 
charliebrown
Member Candidate
Member Candidate
Posts: 130
Joined: Wed Dec 17, 2008 3:27 am

Re: Password has <CR> can't get in

Tue Aug 03, 2010 4:26 pm

bugger, some poor sod's going for a long trip tomorrow then :(
 
charliebrown
Member Candidate
Member Candidate
Posts: 130
Joined: Wed Dec 17, 2008 3:27 am

Re: Password has <CR> can't get in

Thu Aug 05, 2010 6:35 am

For what its worth and counter to MT telling us we would have to net install the router again we worked it out, Using PHP we were able to send the CR as part of the password and managed to get into it!
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Password has <CR> can't get in

Tue Aug 10, 2010 5:09 pm

using PHP? was it Telnet or API connection?
 
charliebrown
Member Candidate
Member Candidate
Posts: 130
Joined: Wed Dec 17, 2008 3:27 am

Re: Password has <CR> can't get in

Wed Aug 11, 2010 2:31 pm

ssh, used php and its ssh library to force send the \r\n at the end of the password, was a real lifesaver