Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

libssh2_banner_set(3) [debian man page]

libssh2_banner_set(3)						  libssh2 manual					     libssh2_banner_set(3)

NAME
libssh2_banner_set - set the SSH prococol banner for the local client SYNOPSIS
#include <libssh2.h> int libssh2_banner_set(LIBSSH2_SESSION *session, const char *banner); DESCRIPTION
This function is DEPRECATED. Use libssh2_session_banner_set(3) instead! session - Session instance as returned by libssh2_session_init_ex(3) banner - A pointer to a 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
Return 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. AVAILABILITY
Marked as deprecated since 1.4.0 ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed. SEE ALSO
libssh2_session_handshake(3) libssh2 0.15 1 Jun 2007 libssh2_banner_set(3)

Check Out this Related Man Page

libssh2_session_method_pref(3)					  libssh2 manual				    libssh2_session_method_pref(3)

NAME
libssh2_session_method_pref - set preferred key exchange method SYNOPSIS
#include <libssh2.h> int libssh2_session_method_pref(LIBSSH2_SESSION *session, int method_type, const char *prefs); DESCRIPTION
session - Session instance as returned by libssh2_session_init_ex(3) method_type - One of the Method Type constants. prefs - Coma delimited list of preferred methods to use with the most preferred listed first and the least preferred listed last. If a method is listed which is not supported by libssh2 it will be ignored and not sent to the remote host during protocol negotiation. Set preferred methods to be negotiated. These preferrences must be set prior to calling libssh2_session_handshake(3) as they are used dur- ing the protocol initiation phase. RETURN VALUE
Return 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_INVAL - The requested method type was invalid. LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed. LIBSSH2_ERROR_METHOD_NOT_SUPPORTED - The requested method is not supported. SEE ALSO
libssh2_session_init_ex(3) libssh2_session_handshake(3) libssh2 0.15 1 Jun 2007 libssh2_session_method_pref(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Processor

From a PROM ok prompt I have typed banner. This returned this info SunSPARCStation20 (1X390Z50) ...... Okay, I read that the 1x390z50 is the processor type. How can I found out the speed of these processor? Is it 50mhz? Don't know but I am curious. Thanks (5 Replies)
Discussion started by: jwbrown
5 Replies

2. 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

3. 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

4. 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

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