How do I opem SSH access on a newly built SUSE 11 linux box?

Hi, as title says, I need SSH (port22) access to my new linux server but I'm not sure how to open the port.
LVL 1
wannabecraigAsked:
Who is Participating?
 
savoneCommented:
Remove the rule

iptables -D INPUT -p tcp --dport 22 -j ACCEPT

Then readd it.. This time use -i which will insert the rule at the top of the INPUT chain like so:

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

0
 
michofreihaCommented:
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
0
 
wannabecraigAuthor Commented:
I've keyed that in but it is still not accepting connections on port22.
0
On-Demand: Securing Your Wi-Fi for Summer Travel

Traveling this summer?Check out our on-demand webinar to learn about the importance of Wi-Fi security and 3 easy measures you can start taking immediately to protect your private data while using public Wi-Fi. Follow us today to learn more!

 
wannabecraigAuthor Commented:
p.s. I'm trying to putty to it.
0
 
savoneCommented:
Did you start the sshd service?

check to see if its running:

ps -ef | grep ssh



In redhat you can start it like so:

/etc/init.d/sshd start

or

service sshd start

If it does not start automatically at boot you can start it on boot with the following command:

chkconfig sshd on

0
 
michofreihaCommented:
Do you have any firewall before the remote server?
0
 
pingvinosCommented:
In red hat,you can do:
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
and
service iptables save
to make the change permanent.Then to make sure it works, you restart the firewall with:
service iptables restart
0
 
wannabecraigAuthor Commented:
I have started the sshd service, not change.

When I use the service iptables save command it get the following error:

no such service iptables.
0
 
Jan SpringerCommented:
Try:

   iptables-save

But before you do that, check /etc/sysconfig/iptables-config (or wherever Suse keeps iptables and its config file) to make sure that on a save, the changes are recorded.

Once that's done:

   iptables -n --list to verify the order and accuracy of your rules.
0
 
wannabecraigAuthor Commented:
Still not working.

I notice when I turn the firewall off (phase 1 & 2) then I can get SSH and VNC access. So it's defo something to do with open ports on that machine.

Any other ideas?  Is there any way I can see a list of open ports?
0
 
wannabecraigAuthor Commented:
Ok, the rule is in there but the drop rule is above it.
How can I move the allow rule up?

DROP       all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ssh
0
 
savoneCommented:
Dont forget to save it... :)
0
 
wannabecraigAuthor Commented:
Thanks, I added the inbuilt OS gui firewall tool and did it that way.
Thanks anyway.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.