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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
wannabecraigAuthor Commented:
p.s. I'm trying to putty to it.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.