About "Get Pre Login Banner" keyword

Hello!

I’m unable to get the connection banner using the keyword “Get Pre Login Banner”. if i use the host, like:

{BANNER}= Get Pre Login Banner {HOST}

I get as error message: "SSHClientException: Unable to connect to port 22 on ".

And if I do something like this:

Open Connection {HOST} prompt={PROMPT}
Login {USERNAME} {PASSWORD}
${BANNER}= Get Pre Login Banner

I get: “AttributeError: ‘NoneType’ object has no attribute ‘decode’”.
Both errors happen when i call the banner keyword. Could someone help me with this issue?

Thank you!