libssh2_agent_disconnect(3)

πŸ“¦
version 1.11.1 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, epel 10, epel 9, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ libssh2_agent_disconnect(3) ✨

okay bestie, welcome to the libssh2 manual page for libssh2_agent_disconnect πŸ’… yes this is a real man page, yes it's part of the libssh2 manual, and yes we're gonna make it cute. sit down, hydrate, let's go 🫢


🌸 NAME 🌸

libssh2_agent_disconnect β€” close a connection to an ssh-agent πŸšͺπŸ’”


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <libssh2.h>

int
libssh2_agent_disconnect(LIBSSH2_AGENT *agent);

like. look at her. one function, one pointer, zero drama ✨


πŸ’– DESCRIPTION πŸ’–

Close a connection to an ssh-agent.

that's it. that's the whole vibe. you had a connection to an ssh-agent, and now you're closing it. saying goodbye. logging off. the ssh-agent connection is giving "and that's on periodt" πŸŽ€


πŸ‘‘ RETURN VALUE πŸ‘‘

Returns 0 if succeeded, or a negative value for error.

so like β€” 0 = slay, we did it πŸ’… and anything negative = it's not giving, something went wrong, check your life 😭


⭐ AVAILABILITY ⭐

Added in libssh2 1.2 β€” so she's been iconic since way back, no cap 🧚


🌈 SEE ALSO 🌈

the whole little friend group fr fr 🫢


lowkey reminder: this closes the connection, it doesn't free the agent handle itself β€” that's a different bestie's job (libssh2_agent_free(3), iykyk) πŸ‘€

mwah πŸ’‹ that's the whole page. sourced straight from the libssh2 manual, dated 23 Dec 2009, and brought to you by the one and only libssh2 πŸ’– take care of her, she's iconic βœ¨πŸ‘‘