Wednesday, April 8, 2020

Migration issues - After the OS migration done, we could not able to ssh to the server?

Migration issues - After the OS migration done, we could not able to ssh to the server?


We could not able to ssh to the server once we migrated the server to AIX 7.1. Looks like there is a bug in AIX 7.1 ssh.

Please follow the below to fix the issue.


Problem:
=======

testlpar: # ssh root@testlpar2
Connection closed by testlpar2
testlpar: #


Solution:
=======

Take the backup of /etc/ssh/sshd_config file and please add "hostKeyAlgorithms +ssh-dss" to the /etc/ssh/sshd_config file, then you can able to ssh to the server witout any issues.

or

Take the backup of /etc/ssh/sshd_config file and please add "HostKey /etc/ssh/ssh_host_rsa_key" to the /etc/ssh/sshd_config file, then you can able to ssh to the server witout any issues.


Now try to ssh now!

testlpar: # ssh root@testlpar2
root@testlpar2's  password: