1822320 Members
6482 Online
109642 Solutions
New Discussion юеВ

ssh problem

 
Ravi kumar raju
Advisor

ssh problem

HI Team

I am not able to use ssh on 11.31 server and i am get the error(connect to host 0 port 22: Connection refused)

rx6660-1# ps -ef | grep -i ssh*
root 71 0 0 14:05:10 ? 0:00 progressdaemon
sfmdb 1457 1454 0 14:07:03 ? 0:00 postgres: stats buffer process
sfmdb 1458 1457 0 14:07:03 ? 0:00 postgres: stats collector process
root 2725 1653 1 14:26:14 pts/ta 0:00 grep -i ssh*


rx6660-1# ./secsh start
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0777 for '/opt/ssh/etc/ssh_host_key' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /opt/ssh/etc/ssh_host_key
Could not load host key: /opt/ssh/etc/ssh_host_key
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0777 for '/opt/ssh/etc/ssh_host_rsa_key' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /opt/ssh/etc/ssh_host_rsa_key
Could not load host key: /opt/ssh/etc/ssh_host_rsa_key
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0777 for '/opt/ssh/etc/ssh_host_dsa_key' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /opt/ssh/etc/ssh_host_dsa_key
Could not load host key: /opt/ssh/etc/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
EXIT CODE: 1

5 REPLIES 5
Jupinder Bedi
Respected Contributor

Re: ssh problem

the error is very clear . you need to change the permission of all the files mentioned above

make it as 600 for all the files mentioned above

chmod 600 filename

and than try

Good Luck
All things excellent are as difficult as they are rare
Taifur
Respected Contributor

Re: ssh problem

Hi,

Check below link as follows,

http://docs.hp.com/en/5992-4672/ch05s03.html


Cheers,
Taifur
Ravi kumar raju
Advisor

Re: ssh problem

SSH is working after the permission change.

Thanks,
Ravi kumar.R
Jupinder Bedi
Respected Contributor

Re: ssh problem

please assign the points to thost to helped you .

All things excellent are as difficult as they are rare
Steven Schweda
Honored Contributor

Re: ssh problem

> [...] Connection refused)

I see no "Connection refused" complaint
anywhere in your transcript. Problem reports
often work better if you do more reporting
and less creative interpretation.