LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-23-2004, 11:14 AM   #1
dicou
Member
 
Registered: Apr 2004
Location: Paris
Posts: 44

Rep: Reputation: 15
Open port ssh with modem router


Hi everybody,
I have a little problem,
i have a router (without firewall) and i want to open the ssh port.
I know the command iptables exist but i don't know how it works, and how to install it,
can anybody help me or tell me an another way to open it?
Thx a lot ;-)
 
Old 05-23-2004, 11:51 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 271Reputation: 271Reputation: 271
What type of router are we talking about here? Is it your own machine you have setup as a router or 3rd party router like Linksys or Netgear, etc? More details gets better responses.
 
Old 05-23-2004, 11:53 AM   #3
dicou
Member
 
Registered: Apr 2004
Location: Paris
Posts: 44

Original Poster
Rep: Reputation: 15
Hi, thx for your interest,
it's a modem speedtouch Pro, Alcatel.
It's a modem router.
Thx
 
Old 05-23-2004, 12:47 PM   #4
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Could you elaborate some more. You have a linux box working as a router or external router? You don't have a firewall, so every port should be open? You want to open ssh-port to where? To the router? To some machine behind your router-box?
 
Old 05-23-2004, 12:49 PM   #5
dicou
Member
 
Registered: Apr 2004
Location: Paris
Posts: 44

Original Poster
Rep: Reputation: 15
i want to go on my computer from an another location.
I have an external router
 
Old 05-23-2004, 12:49 PM   #6
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Oh.. you allready answered to some of those.

Do you have an internet-wide IP-address or does this router nat your local address?
 
Old 05-23-2004, 12:50 PM   #7
dicou
Member
 
Registered: Apr 2004
Location: Paris
Posts: 44

Original Poster
Rep: Reputation: 15
i have an intert ip adress
 
Old 05-23-2004, 12:52 PM   #8
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
ok. If you haven't configured any firewall (and the router won't block packets), then just having ssh daemon running should do the trick.

What does it say if you try to take ssh connection to your ip addrress?
 
Old 05-23-2004, 12:54 PM   #9
dicou
Member
 
Registered: Apr 2004
Location: Paris
Posts: 44

Original Poster
Rep: Reputation: 15
nothing, it doesnt work.

#>ssh [ip]
and i have to ctrl+c to kik it, it doesnt work :-/
 
Old 05-23-2004, 12:59 PM   #10
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Try ssh -v [ip]
(it probably blocks to "debug1: Connecting to hostname [ip] port 22.")

What distribution you are having? Is there some default firewall configured?
What does the command 'iptables -v -L' say?
 
Old 05-23-2004, 01:25 PM   #11
dicou
Member
 
Registered: Apr 2004
Location: Paris
Posts: 44

Original Poster
Rep: Reputation: 15
i cant try it here because i have juste one pc but,
i have mandrake distrib, no firewall
thx
 
Old 05-23-2004, 02:34 PM   #12
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
-You can do it by ssh:ing to some other internet-connected computer first.

-And the iptables -v -L gives empty chains with all having default policy accept?

-One thing to check: Does 'ssh localhost' work?
 
Old 05-23-2004, 03:08 PM   #13
dicou
Member
 
Registered: Apr 2004
Location: Paris
Posts: 44

Original Poster
Rep: Reputation: 15
>ssh -v 83.157.135.78
OpenSSH_3.4 NetBSD_Secure_Shell-20020626, SSH protocols 1.5/2.0, OpenSSL 0x0090605f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to 83.157.135.78 [83.157.135.78] port 22.

i try it, and have that.
 
  


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
how am I supposed to setup my router on my linux, so that i can open ssh 22 port? babyboss Linux - Networking 9 09-23-2004 07:33 AM
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
router port forwarding/ssh epoo Slackware 7 12-30-2003 03:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:30 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