Hello!
Heve swithed to openwrt 0.9 from oleg on my wl500gp and now im unable to get login to my router. Only way is safe mode with telet.
Searched the forums but couldn't find anything. Please help!!

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
Hello!
Heve swithed to openwrt 0.9 from oleg on my wl500gp and now im unable to get login to my router. Only way is safe mode with telet.
Searched the forums but couldn't find anything. Please help!!
Read the instructions on the setup - as soon as you change your root password, telnet will be disabled and ssh will be the only option.
Ok but i cant connect with ssh either
after you flash your router, the first thing to do is to go to the web interface. if you open up your ifconfig or ipconfig, look for the default gateway. if your dhcp is working that is. if not, assign a static ip to your computer with the gateway address your router was using before (it doesn't change when you flash).
goto mozilla firefox->192.168.x.x (or whatever your ip gateway is)
it should open an openwrt admin console page, and then you need to click on one of the links above like network or status. it will take you to another page to set your password, which will then allow you to login via ssh.
if you've done all this and have no ssh access, than telnet into it like you said earlier. find firewall.user inside your /etc/ folder, open it up with vi, then uncomment the line that allows ssh access via port 22.
that should solve your problem...
Than you for answering but no success... I have installed x-wrt now and i can do almost everything like edit files and so on but not run commands.
When ssh 192.168.1.1 it gives:
jocke@jocke-desktop:~$ ssh 192.168.1.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
0d:15:d6:22:6c:b6:04:aa:49:62:58:f6:b3:68:29:c8.
Please contact your system administrator.
Add correct host key in /home/jocke/.ssh/known_hosts to get rid of this message.
Offending key in /home/jocke/.ssh/known_hosts:2
RSA host key for 192.168.1.1 has changed and you have requested strict checking.
Host key verification failed.
TELNET:
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
Login failed.
Firewall.user:
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
iptables -F input_rule
iptables -F output_rule
iptables -F forwarding_rule
iptables -t nat -F prerouting_rule
iptables -t nat -F postrouting_rule
# The following chains are for traffic directed at the IP of the
# WAN interface
iptables -F input_wan
iptables -F forwarding_wan
iptables -t nat -F prerouting_wan
### Open port to WAN
## -- This allows port 22 to be answered by (dropbear on) the router
# iptables -t nat -A prerouting_wan -p tcp --dport 22 -j ACCEPT
# iptables -A input_wan -p tcp --dport 22 -j ACCEPT
### Port forwarding
## -- This forwards port 8080 on the WAN to port 80 on 192.168.1.2
# iptables -t nat -A prerouting_wan -p tcp --dport 8080 -j DNAT --to 192.168.1.2:80
# iptables -A forwarding_wan -p tcp --dport 80 -d 192.168.1.2 -j ACCEPT
### DMZ
## -- Connections to ports not handled above will be forwarded to 192.168.1.2
# iptables -t nat -A prerouting_wan -j DNAT --to 192.168.1.2
# iptables -A forwarding_wan -d 192.168.1.2 -j ACCEPT
go to ~/.ssh edit know_hosts and delete 192.168.1.1
Solved
Just needed to set PC:s ip to 192.168.1.2. Hm, maybe typical newbie-thing that was to easy.
The discussion might have continued from here.