- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Open port 22
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
Discussions
Discussions
Discussions
Forums
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
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
тАО07-06-2006 06:28 AM
тАО07-06-2006 06:28 AM
Bit of a HP-UX noob, but having a problem here.
Basically did a straight install of 11i 1.6, didn't change any settings yet. It has it's network info and can ping the gateway so looks good there.
My problem comes in when I try to SSH to the server from outside the network, it just hangs for a long time before timing out.
Is port 22 open by default with HP-UX?
Know this next question is a big RTFM but I'm not finding (or having the worst luck with it) and good sites or documentation with HP-UX commands.
How do I check to see what ports are open and if they are not what command should I use to modify port settings?
Thanks!
Joel
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 06:37 AM
тАО07-06-2006 06:37 AM
SolutionA really good test is simply:
ps -ef | grep sshd
In you don't see the ssh daemon then do a
swlist | grep -i "Secure"
to see if the Secure Shell product is installed. If it's not installed then you can download and install it for free.
Post the output of these commands and we can go from there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 06:39 AM
тАО07-06-2006 06:39 AM
Re: Open port 22
If sshd is running, the most likely cause of the issue is a firewall blocking access.
ssh -vvv serverhostname
that will let you know where you stand.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 06:42 AM
тАО07-06-2006 06:42 AM
Re: Open port 22
- You can use the nmap command to identify which ports are open.
- To open a port it really depends of the services, some of them are controlled by inetd.conf, others have specific configuration files and startup scripts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 06:42 AM
тАО07-06-2006 06:42 AM
Re: Open port 22
ps -ef | grep sshd
if you see a process named as sshd, it means is working.
But, I am not 100% sure if ssh is coming bundled with the OS at your revision level. You can always download it from hp in a depot format and install it using swinstall.
Answer to your second question. how to see which ports are open, can be done:
netstat -a | grep port_number
you will get some extra lines but it will minimize the output to a manageable level.
or you can get the utility lsof from
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.77/
and install it using swinstall again, to see which port is being held open by which process.
Hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 06:54 AM
тАО07-06-2006 06:54 AM
Re: Open port 22
Here's what I get when I run the 'ps -ef | grep sshd' command:
# ps -ef | grep sshd
root 8999 8687 | 12:45:39 pts/0 0:00 grep sshd. Clay
# swlist | grep -i "Secure"
#
As you can see when I did the swlist it didn't really seem to do anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 06:55 AM
тАО07-06-2006 06:55 AM
Re: Open port 22
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 06:56 AM
тАО07-06-2006 06:56 AM
Re: Open port 22
I'm wondering why you loaded 11i v1.6 (11.22) as it ceased sales on 04/30/04 & HP discontinued support for it on 10/31/05.
You really should be loading 11i v2 (11.23) as HP won't stop selling it until 12/31/08 & will support it through the end of 12/31/13.
See the following for release history:
http://www.hp.com/softwarereleases/releases-media2/history/slide2.html
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 07:02 AM
тАО07-06-2006 07:02 AM
Re: Open port 22
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA
hope it helps.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 07:51 AM
тАО07-06-2006 07:51 AM
Re: Open port 22
grep sshd /etc/inetd.conf #to see if you have ssh configured to run out of inetd
grep ssh /etc/services #to see if there is a port, default for ssh is 22, reserved for sshd to listen on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 08:04 AM
тАО07-06-2006 08:04 AM
Re: Open port 22
Jeff:
Actually just grabbed a OS container from our cabinet to do the install. From what I could see 1.6 was the latest 'n greatest.
Will see if we have a copy of v2 but I'm not sure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 09:51 AM
тАО07-06-2006 09:51 AM
Re: Open port 22
Don't go with 11i v1.6, because this is history! First release was 2002, end of support was 2005. No more support, no patches.
You need to install 11i v2.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 10:06 AM
тАО07-06-2006 10:06 AM
Re: Open port 22
Sad thing is looks like 1.6 is the latest and greatest we have of HP-UX, even ran by my manager to confirm and pleaded with him about making me use something so outdated =D