Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

libssh2_session_banner_set(3) [debian man page]

libssh2_session_banner_set(3)					  libssh2 manual				     libssh2_session_banner_set(3)

libssh2_session_banner_set - set the SSH prococol banner for the local client SYNOPSIS
#include <libssh2.h> int libssh2_session_banner_set(LIBSSH2_SESSION *session, const char *banner); DESCRIPTION
session - Session instance as returned by libssh2_session_init_ex(3) banner - A pointer to a zero-terminated string holding the user defined banner Set the banner that will be sent to the remote host when the SSH session is started with libssh2_session_handshake(3) This is optional; a banner corresponding to the protocol and libssh2 version will be sent by default. RETURN VALUE
Returns 0 on success or negative on failure. It returns LIBSSH2_ERROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se. ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed. AVAILABILITY
Added in 1.4.0. Before 1.4.0 this function was known as libssh2_banner_set(3) SEE ALSO
libssh2_session_handshake(3), libssh2_session_banner_get(3) libssh2 1.4.0 9 Sep 2011 libssh2_session_banner_set(3)

Check Out this Related Man Page

libssh2_session_startup(3)					  libssh2 manual					libssh2_session_startup(3)

libssh2_session_startup - begin transport layer SYNOPSIS
#include <libssh2.h> int libssh2_session_startup(LIBSSH2_SESSION *session, int socket); DESCRIPTION
Starting in libssh2 version 1.2.8 this function is considered deprecated. Use libssh2_session_handshake(3) instead. session - Session instance as returned by libssh2_session_init_ex(3) socket - Connected socket descriptor. Typically a TCP connection though the protocol allows for any reliable transport and the library will attempt to use any berkeley socket. Begin transport layer protocol negotiation with the connected host. RETURN VALUE
Returns 0 on success, negative on failure. ERRORS
LIBSSH2_ERROR_SOCKET_NONE - The socket is invalid. LIBSSH2_ERROR_BANNER_SEND - Unable to send banner to remote host. LIBSSH2_ERROR_KEX_FAILURE - >Encryption key exchange with the remote host failed. LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket. LIBSSH2_ERROR_SOCKET_DISCONNECT - The socket was disconnected. LIBSSH2_ERROR_PROTO - An invalid SSH protocol response was received on the socket. LIBSSH2_ERROR_EAGAIN - Marked for non-blocking I/O but the call would block. SEE ALSO
libssh2_session_free(3) libssh2_session_init_ex(3) libssh2 0.15 1 Jun 2007 libssh2_session_startup(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

changing the telnet banner

I don't want SunOS 5.8 to appear when someone logs into my machine... how do I go about changing the banner? I was thumbing through my unix books and I haven't found anything... I'm probably looking under the wrong topic... anyways... any help would be greatly appreciated. (20 Replies)
Discussion started by: xyyz
20 Replies

2. UNIX for Advanced & Expert Users

Telnet Banner

I need to put a telnet banner on AIX 4.3 and 5.1 servers, so the users can see a warning message before logging into the system. I know /etc/motd will give the message after the login. Basically what I am asking is how do I tell system to read the /etc/issue file on AIX?. Thank you, in advance... (4 Replies)
Discussion started by: smohd
4 Replies

3. UNIX for Advanced & Expert Users

SunBlade2000 Question

Hello Ya'll, I purchased a sunblade 2000 . 1st time I booted up, the banner showed sunblade1000. I need advise on solving this dilemma. I tried upgrading the prom but no luck. Thanks, Aman :o (4 Replies)
Discussion started by: aman1116
4 Replies

4. Shell Programming and Scripting

Edit entry if not equal

Ok here's the scenario, i have a ll.conf file and masterlist. #cat ll.conf 123456 banner 1234 abcdefghi #cat masterlist abcdefghi banner 123456789 what script to change ll.conf banner 123456789 from banner 1234 if they are not equal. the final output will looks like this. #cat... (4 Replies)
Discussion started by: kenshinhimura
4 Replies

5. Shell Programming and Scripting

banner:command not found

hi, When i execute banner command the output is being displayed as banner:command not found When ever i give yum install banner the output is Loading "installonlyn" plugin Setting up Install Process Setting up repositories Parsing package install arguments Nothing to do what... (8 Replies)
Discussion started by: prakashreddy
8 Replies

6. HP-UX

Hp-ux login banner

Hi, How do i create a login banner for hp-ux users. Is there somewhere i can get a step by step explanation? (4 Replies)
Discussion started by: dowell
4 Replies

7. AIX

fg help

I started a Java process via SSH that I knew was going to take a long time to run so I backgrounded it and let my SSH session expire. I logged back in to check up on it (it prints its output to stdout, and a summary to a log file when it's finished) and tried to pull it in to the foreground but... (4 Replies)
Discussion started by: pallak7
4 Replies

8. Shell Programming and Scripting

doubt in banner command !!!

hello, I am using banner command in my shell.I used :- The problem is that the output is printed in 3 separate lines.I want to display it in a single line.If the size is not enough then at least 2 words should come in the same line. Can you tell me what is the option in banner that would help... (4 Replies)
Discussion started by: nsharath
4 Replies

9. UNIX for Dummies Questions & Answers

UNIX Banner Command

Hi, I am logging in into an UNIX environment with my user id and password. I want to display my name there , each time I login into the environment, for which I can use the banner command. Which file should I add the banner command to , so that I will get the desired result? Regards,... (7 Replies)
Discussion started by: Kishore_1
7 Replies

10. Solaris

Password warning banner

What I would like to do is have a banner message run when a user logs into one of my systems. I would like the banner to give the motd and let the user know how long they have until their password expires, but in a bigger than normal font. Any help would be greatly appreciated. (4 Replies)
Discussion started by: whtabtbill
4 Replies

11. UNIX for Dummies Questions & Answers

Need help with banner.

is there a way to reduce the size of the banner? banner -w ? TIA (8 Replies)
Discussion started by: budz26
8 Replies

12. Solaris

Persistent Security Banner on Gnome Desktop

I'm looking for options for displaying a persistent, security banner on a Solaris 10 workstation running JDS that would display at the top of each workspace for all users, have the option to change the color and the capability to add text to the banner. The company I work for has used JEDI for... (5 Replies)
Discussion started by: ArizonaTraveler
5 Replies

13. UNIX for Dummies Questions & Answers

Banner not displaying full content

HI, while using banner command, i am not getting the full content in the screen: banner "UNIX AUTOMATION" # # # # ### # # # # # ####### ####### # # # # ## # # # # # # # # # # # ## ## # # # # # # ... (5 Replies)
Discussion started by: pandeesh
5 Replies

14. Shell Programming and Scripting

How to enable "banner" for a user in solaris?

Password: Using keyboard-interactive authentication. Do you agree with the banner terms (y/n)?: y (4 Replies)
Discussion started by: frintocf
4 Replies

15. UNIX for Dummies Questions & Answers

PAM closing SSH session

Hello guys, You are my last hope. I googled for hours and tried so many things but I can't find a way to fix my problem. So there we go: I open a SSH tunnel to my linux vps. My client sends every 5-minutes a keepalive package and I also set the "ClientAliveInterval" value to 300 in the... (8 Replies)
Discussion started by: iamanewb
8 Replies