LinuxQuestions.org
Help answer threads with 0 replies.
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 04-27-2004, 01:58 PM   #1
dicou
Member
 
Registered: Apr 2004
Location: Paris
Posts: 44

Rep: Reputation: 15
SSH port 22, how open it?


Hi everyone,
i have a router modem and a mandrake distrib and i just want to know how open the ssh port (22)?
modem : Alcatel Speedtouch Pro modem.
Thanks
 
Old 04-27-2004, 02:24 PM   #2
xatmes
LQ Newbie
 
Registered: Jul 2003
Location: Kalamazoo, MI
Distribution: Slackware 10.2
Posts: 10

Rep: Reputation: 0
Basically you want to have sshd running as a daemon service...it defaults to port 22. I'm assuming you have a firewall up....so you want to put a rule in it with "iptables" like:

iptables -I INPUT -i eth0 -p tcp --dport 22 -j ACCEPT


This is a fairly liberal rule so you may want to add some other conditions like "-s <IP>" and put whatever IP or IP range you want to give access to.

If your router/modem does the firewalling then you will want to create a similar rule on your modem...but you should consult the documentation for your particular modem on the right way to do that

Last edited by xatmes; 04-27-2004 at 02:26 PM.
 
Old 04-27-2004, 02:25 PM   #3
DoubleOTeC
Member
 
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266

Rep: Reputation: 30
Your first step would be to ensure that the SSHD service is running. You can either check your list of running processes or run ps aux | grep sshd.

To test if the port 22 is open you can run nmap -p 22 localhost

If it is open and you can't get through to it from the outside....then your router/firewall may be blocking access...configurations may need to be tweaked.

Let i kno...
 
Old 04-27-2004, 04:42 PM   #4
dicou
Member
 
Registered: Apr 2004
Location: Paris
Posts: 44

Original Poster
Rep: Reputation: 15
thanks foor your information,
i don't have any firewall, so i think it's easy but i didn't kno the command.
thanks ;-)
 
  


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
cannot SFTP to SUSE 9.2 box, port 22 open, can putty in though using same port. jgrady Linux - Networking 6 03-29-2005 08:44 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
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


All times are GMT -5. The time now is 03:05 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration