sftp_proto_version
u_int sftp_proto_version(struct sftp_conn *);
printf("SFTP protocol version %u\n", sftp_proto_version(conn));