Operating System - HP-UX
1833792 Members
2106 Online
110063 Solutions
New Discussion

ssh: secure connection refused

 
SOLVED
Go to solution
Yu Ting LIU
Advisor

ssh: secure connection refused

Hi,

I have installed OpenSSH_3.1 on a HP-UX 10.20 workstation. Now I can ssh out successfully but I can not ssh in or even ssh to itself.

$ /usr/local/openssh/bin/ssh -v 127.0.0.1
OpenSSH_3.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090601f
debug1: Reading configuration data /usr/local/openssh/etc/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: restore_uid
debug1: ssh_connect: getuid 1001 geteuid 0 anon 1
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 22.
debug1: temporarily_use_uid: 1001/9 (e=0)
debug1: restore_uid
debug1: temporarily_use_uid: 1001/9 (e=0)
ssh: connect to address 127.0.0.1 port 22: Connection refused
debug1: restore_uid

I have changed some configurations in file ssh_config, sshd_config and /etc/services but it's still not working.

Thanks & Regards!
Yu Ting
2 REPLIES 2
Sridhar Bhaskarla
Honored Contributor
Solution

Re: ssh: secure connection refused

Hi Yu Ting,

Looks like you don't have 'sshd' process running. Do a 'ps -ef|grep sshd' and see if there is a process.

If there is none, then you will need to start your sshd process. Startup is dependent on the version you installed. If you installed it from HP's porting center, you will normally find a startup file under /sbin/rc*.d directory. Find it using the command

ll /sbin/init.d/ssh*

/sbin/init.d/sshd start

Installation should already have configured sshd on the box such as generating hostkeys. If it says 'hostkey not found', then run the following command.

ssh-keygen -t rsa1 -N ''
.

If you don't find /sbin/init.d script, then try running and see if it works

/usr/local/openssh/sbin/sshd

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Yu Ting LIU
Advisor

Re: ssh: secure connection refused

Thanks! It's working.

Daemon is not running.

Regards!
Yu Ting