2

I am trying to do passwordless SSH between two server Linux (source) and AIX (destination)

For this i have created public key in Linux server and coped this public key in destination server user profile (in path .ssh/authorized_keys).Also this file is given proper permission.

In /etc/ssh/sshd_config i have uncommented below

PubkeyAuthentication yes
AuthorizedKeysFile        .ssh/authorized_keys

But when i am trying to to SSH from Linux to AIX i am getting below error

ssh user@AIX-server ls -a
Permission denied, please try again
Permission denied, please try again
Permission denied (publickey,password,keyboard-interactive,hostbased)

some debug logs

debug1: Trying next Authentication method: publickey
debug1:  Trying public key 
debug2: We did not sent packet, disable method
AWS_Beginner
  • 181
  • 5

2 Answers2

1

Try restarting the SSHD service sudo systemctl restart sshd.

Fireant456
  • 21
  • 3
0

After the configuration change you should restart the sshd service on AIX

restartsrc -s sshd

Also, you may have forgotten the home directory for the AuthorizedKeysFile

AuthorizedKeysFile  %h/.ssh/authorized_keys
Gerard H. Pille
  • 2,569
  • 1
  • 13
  • 11