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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-23-2004, 11:14 AM
|
#1
|
Member
Registered: Apr 2004
Location: Paris
Posts: 44
Rep:
|
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 ;-)
|
|
|
05-23-2004, 11:51 AM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
05-23-2004, 11:53 AM
|
#3
|
Member
Registered: Apr 2004
Location: Paris
Posts: 44
Original Poster
Rep:
|
Hi, thx for your interest,
it's a modem speedtouch Pro, Alcatel.
It's a modem router.
Thx
|
|
|
05-23-2004, 12:47 PM
|
#4
|
Senior Member
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357
Rep:
|
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?
|
|
|
05-23-2004, 12:49 PM
|
#5
|
Member
Registered: Apr 2004
Location: Paris
Posts: 44
Original Poster
Rep:
|
i want to go on my computer from an another location.
I have an external router
|
|
|
05-23-2004, 12:49 PM
|
#6
|
Senior Member
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357
Rep:
|
Oh.. you allready answered to some of those.
Do you have an internet-wide IP-address or does this router nat your local address?
|
|
|
05-23-2004, 12:50 PM
|
#7
|
Member
Registered: Apr 2004
Location: Paris
Posts: 44
Original Poster
Rep:
|
i have an intert ip adress
|
|
|
05-23-2004, 12:52 PM
|
#8
|
Senior Member
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357
Rep:
|
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?
|
|
|
05-23-2004, 12:54 PM
|
#9
|
Member
Registered: Apr 2004
Location: Paris
Posts: 44
Original Poster
Rep:
|
nothing, it doesnt work.
#>ssh [ip]
and i have to ctrl+c to kik it, it doesnt work :-/
|
|
|
05-23-2004, 12:59 PM
|
#10
|
Senior Member
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357
Rep:
|
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?
|
|
|
05-23-2004, 01:25 PM
|
#11
|
Member
Registered: Apr 2004
Location: Paris
Posts: 44
Original Poster
Rep:
|
i cant try it here because i have juste one pc but,
i have mandrake distrib, no firewall
thx
|
|
|
05-23-2004, 02:34 PM
|
#12
|
Senior Member
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357
Rep:
|
-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?
|
|
|
05-23-2004, 03:08 PM
|
#13
|
Member
Registered: Apr 2004
Location: Paris
Posts: 44
Original Poster
Rep:
|
>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.
|
|
|
All times are GMT -5. The time now is 12:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|