how to ssh to server behind mtnl triband

  • Thread starter Thread starter mp3news
  • Start date Start date
  • Replies Replies 6
  • Views Views 3,808

mp3news

Newbie
Messages
3
Location
NA
ISP
MTNL
hi: i have a mtnl triband connection. with great difficulty & delay i managed to get a static ip from mtnl. however am unable to get anyone from mtnl to assist me on how to set up my server with the static ip for access from outside using ssh (putty). i have 2 ethernet cards on my server - one external & the other for internal lan. the external card is connected to the adsl router (D-Link 502t) as dhcp, while the internal card is configured with a 172.x.x.1 static ip. will really appreciate if anyone can assist me in detail on how to go about enabling access using a ssh client. i think i need to configure the router in some way but have no clue on what to do. please help, thanx
 
Its easy you have to forward port 22 from your modem to ur PC . I am assuming that your modem automatically dials the connection . Which modem do you have ?
 
hi:thanx for offering your help.as mentioned in my post, my computer is connected to the phone line through an ADSL router - D-Link 502t.i would need help on how to forward port 22 from modem to my server.yes, i am trying to connect using putty, but am unable to connect to my server from outside.please help, thank you
 
OpenWRT for the D-Link DSL-502T
After reading above web site full instructions !
Finally ?
Configuration steps

1. Set the root password:
* Telnet to the router.
telnet 192.168.1.1
* Set a password.
passwd
* Log out.
exit
* The modem will disable telnet connections and will start accepting connections via ssh within a few minutes.

2. Configure PPPoA/PPPoE via a template:
* Fetch this PPP configuration template
* Open it with a text editor, and edit the "ISP specific settings" up the top. You probably only need to set the username and password if you are an Australian user.
* Reconnect to the router, now using SSH and the password you set in step 1.
ssh [email protected]
* Paste the contents of your modified template file into your terminal window. You should see the router execute the commands without any errors. Keep the terminal session open.

3. Configure Dynamic DNS via a template:
* If you don't to perform Dynamic DNS updates, rename the default configuration file out of the way, and then skip the rest of the Dynamic DNS steps.
mv /etc/ez-ipupdate.conf /etc/ez-ipupdate.conf.disabled
* Fetch this ez-ipupdate configuration template
* Open it with a text editor, and edit the "Dynamic DNS provider specific settings" up the top, filling them out with the values your provider needs.
* Paste the contents of your modified template file into your terminal window. Once again, you should see the commands activate without any errors. Again, keep the terminal session open.

4. Reboot the router to activate your changes: etc etc

Para two :
Seems you were not too happy with the ref given. I had no need for SSH or web hosting
and your query is only a learning process for me. and at the same time if it helps you well and good. Also I don't have this router 502T.Without Google/Yahoo/Answers.com search engines I would not haveeven attempted a posting to your query.

please see the menu on the left and select. D-Link Support
 
thanx buddy.. will try and revert. hopefully i will not fry my router :(if it works will try & document the exact steps followed as a tutorial for other members who may want to ssh into their machines. many thanx essbebe :)
 
Use the web interface if router . considering your router ip is 192.168.0.1 . From ur server connected to modem type http://192.168.0.1 and then either manually portforward or just use the DMZ option . Go in DMZ and enter ur server's ip address . Your DSL-502 modem will forward all ports to that server .
 
Back