Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
libssh を使用して独自の ssh サーバー (ある種のハニーポット) を作成しています。接続したクライアントの IP アドレスをログファイルに保存したいと考えています。この IP アドレスを取得するにはどうすればよいですか? C++ でのプログラミング。よろしくお願いします!
s = ssh_get_fd(session); getpeername(s, ...);