LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-21-2004, 08:36 PM   #1
babyboss
Member
 
Registered: Sep 2004
Posts: 124

Rep: Reputation: 15
how am I supposed to setup my router on my linux, so that i can open ssh 22 port?


I tried lynx 192.168.1.1 but it doesn't let me do anything. Can anyone indicate me step by step what I have to do. Or indicate me any document that i can read on.
 
Old 09-21-2004, 09:55 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
lynx is used to open a webpage. lynx is a text browser. To have your server respond to lynx or other browser requests, you need to have apache or another http server running.

For ssh access, you connect to the server using the ssh client. On a linux/unix platform simply type ssh <ipaddress/hostname>. On a Windows platform, you will need a software like Putty or a client from ssh.com.

To have your server respond to ssh clients, you should have the sshd daemon running on your server.

Your router shoud have NATting on to direct traffic to your servers. What kind of router do you have? IF it is a linux router, you need to enable ip_forwarding and have FORWARD and PREROUTING DNAT iptables rules.

Last edited by ppuru; 09-21-2004 at 09:58 PM.
 
Old 09-22-2004, 01:24 AM   #3
babyboss
Member
 
Registered: Sep 2004
Posts: 124

Original Poster
Rep: Reputation: 15
My router is linksys.. and I have slackware on my box.. can u please tell me carefully how am I supposed to do in order to open my port 22 so that I can use ssh client to log into my linux box.
Also, I figure out that my IP is different. I have two computer at my place. For internal network, I can ssh to my linux box. But if I try to ssh from outside.. the ip doesn't seem to be working.
 
Old 09-22-2004, 01:56 AM   #4
Tap-Out
Member
 
Registered: Oct 2002
Location: Halifax, NS
Distribution: Ubuntu, Mepis, Debian
Posts: 130

Rep: Reputation: 15
Quote:
Originally posted by babyboss
My router is linksys.. and I have slackware on my box.. can u please tell me carefully how am I supposed to do in order to open my port 22 so that I can use ssh client to log into my linux box.
Also, I figure out that my IP is different. I have two computer at my place. For internal network, I can ssh to my linux box. But if I try to ssh from outside.. the ip doesn't seem to be working.
From what I can read it sounds like you have an internal network 192.168.1.0 with 2 computers on it. They can see one another just fine, and your other computer can successfully ssh into your slackware box just fine. However you also have an external IP address that the outside world sees. Now to be able to ssh into your slack box from the outside world (IE the internet), you have to make some changes to your Linksys router itself. In the http interface you have to first make sure that port 22 is not blocked by a firewall. Once you have determined that it's not blocked you then have to tell the router to pass all port 22 traffic onto your slack box. This is done by a feature called "Port Forwarding". In the web interface for your Linksys router look for something that deals with Port Forwarding and then tell the router to redirect all traffic comming in on port 22 to 192.168.1.1 and try to ssh into your computer again from the outside world, but don't try to ssh into 192.168.1.1 but you would have to use your external IP address instead.

Sorry I can't tell you exactially what screens to look for on your router interface, but it has been quite some time since I used a Linksys router and don't have the screens memorized. Also if you are still unclear about anything please feel free to post again and myself, or someone else I'm sure, would be happy to help you.

Cheers
 
Old 09-22-2004, 03:09 AM   #5
babyboss
Member
 
Registered: Sep 2004
Posts: 124

Original Poster
Rep: Reputation: 15
Oh my!!! It all sudden become so clear to me now... Thanks for you clear explanation. There is another trouble however. How do I check my external ip?
 
Old 09-22-2004, 04:55 AM   #6
manvirr
Member
 
Registered: Jul 2004
Location: Chandigarh
Distribution: RedHat 9.0
Posts: 34

Rep: Reputation: 15
To check your external IP go to this link. http://www.tracert.com/cgi-bin/trace.pl

the IP Address that you see there is your external IP.

Oh and the other way is to log into your linksys router and in one of the web interfaces you can see the external IP Address.

Cheers
 
Old 09-22-2004, 06:22 AM   #7
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
you can login to your linksys router to find the external ip.

Also, if your IP Address is provided by a DHCP server, you may need the services of dyndns.org or a similar provider so that you can always connect to your network even if your External IP Changes.
 
Old 09-22-2004, 05:31 PM   #8
Tap-Out
Member
 
Registered: Oct 2002
Location: Halifax, NS
Distribution: Ubuntu, Mepis, Debian
Posts: 130

Rep: Reputation: 15
I'm glad my, or the other's, explaination helped you figure out what your problem is. As per your next question of how do I find my external IP address, in addition to the links provided above, I find the most simple one is to just go to http://www.whatismyip.com and that will tell you with no confusion what your external IP address is.

Cheers
 
Old 09-23-2004, 07:32 AM   #9
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
And I found this today

http://www.danasoft.com/vipersig.jpg

Last edited by ppuru; 09-23-2004 at 07:36 AM.
 
Old 09-23-2004, 07:33 AM   #10
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
And I found this today

http://www.danasoft.com/vipersig.jpg
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Port 22 SSH open! figfighter Linux - Security 3 07-01-2005 08:14 AM
Open port ssh with modem router dicou Linux - Newbie 12 05-23-2004 03:08 PM
How to open the port 22 (ssh)? dicou Linux - Newbie 5 05-02-2004 01:12 PM
SSH port 22, how open it? dicou Linux - Newbie 3 04-27-2004 04:42 PM
how to setup router on linux as a open firewall thirumala Linux - Networking 8 04-10-2004 05:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration