1838374 Members
3302 Online
110125 Solutions
New Discussion

Re: SSH enabled?

 
vaman
Frequent Advisor

SSH enabled?

I am not able to logging to a hpux host 11.0 via ssh from my windows desktop but I can telnet. Is it ssh conf. of the host is having any problem.
vaman kulkarni
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: SSH enabled?

For ssh to work permissions have to be correct on the /home/username/.ssh directory

You can do this on HP-UX

tail -f /var/adm/syslog/syslog.log

Attempt a connect.

Also, review attached document.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeff Schussele
Honored Contributor

Re: SSH enabled?

Hi,

Check the server to see if the SSH daemon is running:

ps -ef | grep sshd

Should have an entry that looks like:

root 844 1 0 Oct 17 ? 0:00 /opt/ssh/sbin/sshd

You're daemon *may* be in another location, but the point remains that without the daemon running the server will not respond to client connection requests.
If it's not running then you need to determine why. Check that there's a startup entry in /sbin/rc2.d - something like K700sshd2 and that in /etc/rc.config.d there's an sshd file that contains something like SSHD2=1 to enable startup.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Mike Patterson
Frequent Advisor

Re: SSH enabled?

We are running HP-UX 11.0, and I had to install ssh. I downloaded Secure Shell A.03.71.000 from www.software.hp.com.
The sshd daemon should start automatically after the installation.
On one of my systems this is the process:
root 7959 1 0 Jun 30 ? 0:00 /opt/ssh/sbin/sshd

Mike Patterson
Frequent Advisor

Re: SSH enabled?

Also -

The startup script on 11.0 for ssh is
/sbin/rc2.d/S393secsh
The config file is:
/etc/rc.config.d/sshd
In this file, check that SSHD_START=1

I hope my posts help you out a bit.
- Mike
Rick Garland
Honored Contributor

Re: SSH enabled?

from your windows desktop you will use putty - the MS version of SSH. On the HPUX side ensure that the sshd daemon is running; ps -ef | grep ssh.

While using putty, ensure that you are using the correct port (22) to connect to the HP box. Make sure this port is open and not being used by another process - you can use lsof on the HP box to see. If the HP system does not resolve from Windows, use the IP address of the HP box in your putty config.
Sanjay_6
Honored Contributor

Re: SSH enabled?

Hi,

It is possible the ssh is allowing only limited access from outside. Check your sshd_config file and see if the allowhosts is set. If it is commented out that means any one can ssh to this server. But if there is a subnet/domain/host entry in allowhosts, it means only those subnets/domain/hosts can ssh to this server.

Can you ssh to this server from some other workstation / host.

Hope this helps.

Regds