# About "Get Pre Login Banner" keyword

**URL:** <https://forum.robotframework.org/t/about-get-pre-login-banner-keyword/748>\
**Category:** SSHLibrary\
**Created:** [21 September 2020 18:23 UTC](https://forum.robotframework.org/t/about-get-pre-login-banner-keyword/748 "2020-09-21T18:23:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dinse](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@dinse](https://forum.robotframework.org/u/dinse)\
**Post date:** [21 September 2020 18:23 UTC](https://forum.robotframework.org/t/about-get-pre-login-banner-keyword/748/1 "2020-09-21T18:23:33Z")

</div>

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!
