ssh permission denied

Hi Admins,

I am not able to login AIX 5.3 server using ssh

recieving below error

 # ssh 10,.10.101.10
ksh: ssh: 0403-006 Execute permission denied.

below is sshd_config file

#       $OpenBSD: sshd_config,v 1.73 2005/12/06 22:38:28 reyk Exp $
# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options change a
# default value.
#Port 22
#Protocol 2,1
Protocol 2
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 768
# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile      .ssh/authorized_keys
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
PermitEmptyPasswords yes
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication mechanism.
# Depending on your PAM configuration, this may bypass the setting of
# PasswordAuthentication, PermitEmptyPasswords, and
# "PermitRootLogin without-password". If you just want the PAM account and
# session checks to run without PAM authentication, then enable this but set
# ChallengeResponseAuthentication=no
#UsePAM no
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
#PermitTunnel no
# no default banner path
Banner /etc/ssh/banner
# override default of no subsystems
Subsystem       sftp    /usr/sbin/sftp-server

I just restarted the sshd subsystem after some changed the

X11UseLocalhost yes 

.But i revoked the same .

Regards
neawix

Maybe because of this in your command line (emphasis added):

# ssh 10,.10.101.10

Hi pludi,

Thanks for the response. That was just an type error.

Actually i can login to this said server from other server and from putty.
But when i execute ssh from this server getting error.

Below are the permissions of ssh file

-rw-r--r--    1 root     system         2902 Aug 09 2010  sshd_config
-r-xr-xr-x    1 root     system       738444 May 14 2006  /usr/sbin/sshd

Regards
newaix

So where is your sshd_config file shown above from? The following should have the # removed

#PermitRootLogin yes

Or is it your standard user ID which cannot ssh to the server? I have assumed that you are connecting as root.

Your "Execute permission denied" is coming from your "ssh" command, not your "sshd". What does your ssh file look like?

hostname:/:$ ls -l `which ssh`
-r-xr-xr-x    1 root     system      1661456 Aug 03 2011  /usr/bin/ssh
hostname:/:$

If what you have above is the sshd_config file on the client machine, that is the wrong config file. That one is for the ssh server. In this scenario, that box would be the client and the client configuration file is /etc/ssh/ssh_config (no "d").