Other *NIXThis forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hello, new to the unix world. I can telnet into the host but getting connection refused when trying to ssh. I'm guessing I need to enable a function but not sure what it is.
What version of HP-UX? Run "uname -a" and it will show you.
Is the secure shell package installed? Run "swlist |grep -i "secure shell"" to see. This is the package that has sshd (ssh daemon) in it.
Is sshd running? Run "ps -ef |grep sshd" to check.
If Secure Shell is installed and sshd isn't running you ought to be able to start it by running "/sbin/init.d/secsh start".
If that starts it you should check /sbin/rc?.d for links back to that file. Chances are they aren't there which is why it didn't start automatically. On an HP-UX 11.11 system the links I have are:
lrwxr-xr-x 1 root sys 18 Jan 21 2005 /sbin/rc1.d/K393secsh -> /sbin/init.d/secsh
lrwxr-xr-x 1 root sys 18 Jan 21 2005 /sbin/rc2.d/S393secsh -> /sbin/init.d/secsh
(The K link stops secure shell on shutdown in run level 1 and the S link starts it on boot in run level 2.)
Once you have sshd running you should really think about disabling telnet and ftp access (and likely rlogin/rexec) because they are insecure transport mechanisms. Of course you'd want to verify nothing in your environment was relying upon them before you turned them off.
On one of my systems swlist shows it as:
T1471AA A.04.00.000 HP-UX Secure Shell
You may have an earlier or later version depending on the CD. Truth to tell its been so long since I installed from a CD that I don't really remember. (I do have a depot on one of my servers that we swcopy'd the packages into long ago.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.