1753540 Members
5447 Online
108795 Solutions
New Discussion юеВ

SSH issue!!

 
Amit Manna_6
Regular Advisor

SSH issue!!

From a HP server when we do ssh (hostname) to another server I get the followingf error:

/opt/ssh/bin/ssh tldnms
Permission denied.

Can anybody suggest a workaround for the same.


13 REPLIES 13
RAC_1
Honored Contributor

Re: SSH issue!!

It is coming from another server-tldnms. Check on that server. May be you are not allowed to log onto it. Check syslog, dmesg on that server.
There is no substitute to HARDWORK
RAC_1
Honored Contributor

Re: SSH issue!!

Also ssh -vvv tldnms will give more messages for anlyzing yourm problem.
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: SSH issue!!

Are you executing this command as a root or normal user ?
"A ship in the harbor is safe, but that is not what ships are built for"
Arunvijai_4
Honored Contributor

Re: SSH issue!!

Check this thread, http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=776938
"A ship in the harbor is safe, but that is not what ships are built for"
VEL_1
Valued Contributor

Re: SSH issue!!


check the ~/.ssh/known_hosts for an existing entry for the conflicting box
and check that your firewall settings allow connections on port 22
VEL_1
Valued Contributor

Re: SSH issue!!


Check the permission of ssh config files. An dalso check the /bin directory. It should be 755.

Permission denied may be anywhere along the path, not the file itself. so look at /bin and / also.
Amit Manna_6
Regular Advisor

Re: SSH issue!!

I am trying from normal user.

ssh -v tldnms
SSH Version 1.2.27 [hppa1.0-hp-hpux10.20], protocol version 1.5.
Standard version. Does not use RSAREF.
michael: ssh_connect: getuid 0 geteuid 0 anon 0
michael: Connecting to tldnms [10.220.6.17] port 22.
michael: Allocated local port 1023.
michael: Connection established.
michael: Remote protocol version 1.5, remote software version 1.2.27
michael: Waiting for server public key.
michael: Received server public key (768 bits) and host key (1024 bits).
michael: Host 'tldnms' is known and matches the host key.
michael: Initializing random; seed file /root/.ssh/random_seed
michael: Encryption type: idea
michael: Sent encrypted session key.
michael: Installing crc compensation attack detector.
michael: Received encrypted confirmation.
michael: Remote: Server does not permit empty password login.
michael: No agent.
michael: Doing password authentication.
root@tldnms's password:
Permission denied.


I am getting the above error.

Please advice.
RAC_1
Honored Contributor

Re: SSH issue!!

ssh -vvv would have been better. Looks as if root is not allowed to login directly on the server. If you want to login in as another user, do ssh user@tldnms
There is no substitute to HARDWORK
Orhan Biyiklioglu
Respected Contributor

Re: SSH issue!!

Are you sure that you input the correct root password for the machine tldnms. Can you login to this machine by any other means (telnet, ftp, etc.) using this password. Maybe the root password has expired or the root account is disabled.
If you can login to tldnms than check if there are any messages in the syslog

grep sshd /var/adm/syslog/syslog.log