- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- opening port 22 on redhat 3.0
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 02:55 AM
03-27-2006 02:55 AM
opening port 22 on redhat 3.0
Can anyone help me on how to open port 22 on my redhat 3.0 server?
This exercise is to enable me connect to my server from anywhere on the internet and not just from within my home.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 03:17 AM
03-27-2006 03:17 AM
Re: opening port 22 on redhat 3.0
First try to close the iptables totally:
service iptables stop
and make sure that the sshd is running (presumably installed).
service sshd status
if the status is "stopped"
then run service sshd start
hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 03:38 AM
03-27-2006 03:38 AM
Re: opening port 22 on redhat 3.0
Is there a command to actually tell it to open the port after all what you have said is done? I know sshd is running definitely.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 03:52 AM
03-27-2006 03:52 AM
Re: opening port 22 on redhat 3.0
Unless the default was changed and there's no firewall-it should be open.
Try to telnet to that port and see if it's open....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 03:55 AM
03-27-2006 03:55 AM
Re: opening port 22 on redhat 3.0
Check for the file /etc/services and see is port 22 commented..
also do
service sshd restart
then do
netstat -an | grep 22
to check the status.
also if iptables is blocking 22...do
service iptables stop
and try..
Cheers
Vipul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 06:45 PM
03-27-2006 06:45 PM
Re: opening port 22 on redhat 3.0
a) first af all make sure that ssh is running (you can test that easily, just telnet localhost 22; if it's running you will see something similar to
Connected to localhost.
Escape character is '^]'.
SSH-1.99-OpenSSH_3.9p1
b) once this is OK, do NOT stop the firewall ( running service iptables stop). Instead use the firewall configuration tool (redhat-config-securitylevel) and allow ssh.
c) last but not least, once it's working (or even before it), if you have fixed IP addresses you will connect from, edit /etc/hosts.allow and add a line similar to:
sshd: 127.0.0.1 other.ip.add.res
and also in /etc/hosts.deny a line similar to:
sshd: ALL
If you do not have and do not wish to install redhat-config-securitylevel, you may take an alternate approach: just type in command line
iptables -I INPUT -p tcp --dport 22 -j ACCEPT
and retest ssh. If it is OK, type
service iptables save
(so that the rule will be preserved in the future)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2006 07:22 AM
03-31-2006 07:22 AM
Re: opening port 22 on redhat 3.0
Good luck!
//Marius