Connection not open error while connecting to SFTP server

Hi All

I am connecting to SFTP server. I am trying to connect using username and keyfile. With same user and key I am able to connect manually to SFTP server.

I am trying using below robot code. I have just below code
Open connection
Get Connection details
Execute command localhost
Login using public key

My Code Snippet is as below-
Test SFTPConenction And Login In With Public Key
${conn}= Open Connection ${HOST} port=${PORT} timeout=120
Log ${conn}
${conninfo}= Get Connection
Log ${conninfo}
Enable Ssh Logging logfile.txt
${output}= Execute Command hostname
#or
#${output}= Execute Command df -h
Log To Console “${output}”
Run Keyword And Ignore Error Login With Public Key ${USERNAME} ${KeyFile} password=‘’ allow_agent=${True} look_for_keys=True

Result get as below

I have tried with below all versions of paramiko package -
2.12.0
2.1.2
2.2.1
paramiko==2.10.1
paramiko==2.11.0
2.5.1
2.11.10
2.11.1
2.10.6
2.10.5

Other packages on my machine as below-

paramiko==3.0.0
paramiko-ng==2.8.10
Python 3.8.3
cryptography==36.0.2

Please let me know If I am missing anything
Thanks