enabling ssh login to AIX server

Enabling SSH Login

Enabling SSH Login to root

Go the /etc/ssh directory where you find sshd_conf ig file
vi sshd_config
there you will find the " PermitRootLogin no " make this to

PermitRootLogin yes


Then root will be able to login



How to find out the problem with your sshd


just type /usr/sbin/sshd -d on your command prompt it will debug your sshd

then you can see the problem

# /usr/sbin/sshd -d
debug1: sshd version OpenSSH_5.0p1
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
debug1: Bind to port 22 on ::.
Bind to port 22 on :: failed: Address already in use.
Cannot bind any address.


How to resolve the problem Bind to port 22 on :: failed: Address already in use.


Go the /etc/ssh directory where you find sshd_conf ig file
vi sshd_config

then you will find the below lines

#Port 22
AddressFamily IPV6
#ListenAddress 0.0.0.0
#ListenAddress ::


then comment all the lines

then the stop and start the sshd

stopsrc -g ssh
startsrc -g ssh

then the problem will be solved you will be able to connect to the server by SSH.


Number of Hits : Hit Counter by Digits

ADD this Info

Bookmark and Share