Originally posted by: SystemAdmin
Hi all,
I am pretty new to AIX and want to achieve following issues.
First of all, i have to disable the SSH access for root user.
So, i've changed the configuration of ssh_config file as below. /etc/ssh/ssh_config
And i've put a public key under .ssh/ directory and named it as authorized_keys.
-
Host *
-
ForwardAgent no
-
ForwardX11 no
-
RhostsRSAAuthentication no
#RSAAuthentication yes
PermitRootLogin without-password
StrictModes no
#PasswordAuthentication no
-
HostbasedAuthentication no
-
BatchMode no
-
CheckHostIP yes
-
AddressFamily any
-
ConnectTimeout 0
-
StrictHostKeyChecking ask
IdentityFile ~/.ssh/authorized_keys
-
IdentityFile ~/.ssh/id_rsa
-
IdentityFile ~/.ssh/id_dsa
-
Port 22
-
Protocol 2,1
-
Cipher 3des
-
Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
-
EscapeChar ~
I've restarted the sshd daemon as below.
stopsrc -g ssh
startsrc -g ssh
Actually, it seems no problem with private key access, i can do it at the moment. However, i still have access with root user using SSH.
How can i prevent this and keep logging into systems using private key as a root user?
Regards,
Onur