예제 #1
0
static void usage()
{
	fprintf(stderr,"Usage : ssh(v.%s)  \n"  "access_srv <HOST_IP> -l <USER>\n",

	ssh_version(0) );

	exit(0);
} /* static void usage */
예제 #2
0
static void usage(const char *argv0){
  fprintf(stderr,"Usage : %s [-v] remotehost\n"
      "sample sftp test client - libssh-%s\n"
      "Options :\n"
      "  -v : increase log verbosity\n",
      argv0,
      ssh_version(0));
  exit(0);
}
예제 #3
0
static void usage(const char *argv0){
  fprintf(stderr,"Usage : %s [options] host\n"
      "sample tiny scp downloader client - libssh-%s\n"
	  "This program will create files in /tmp and try to fetch them\n",
//      "Options :\n",
//      "  -r : use RSA to verify host public key\n",
      argv0,
      ssh_version(0));
  exit(0);
}
예제 #4
0
static void usage(const char *argv0){
  fprintf(stderr,"Usage : %s [options] [[user@]host1:]file1 ... \n"
      "                               [[user@]host2:]destination\n"
      "sample scp client - libssh-%s\n",
//      "Options :\n",
//      "  -r : use RSA to verify host public key\n",
      argv0,
      ssh_version(0));
  exit(0);
}
예제 #5
0
void
SSHServer::dump() {
//    GNASH_REPORT_FUNCTION;
    
    boost::mutex::scoped_lock lock(stl_mutex);
  
    log_debug (_("==== The SSH header breaks down as follows: ===="));

    ssh_version(0);
}
예제 #6
0
파일: sshclient.cpp 프로젝트: aopui/gnash
void
SSHClient::dump() {
//    GNASH_REPORT_FUNCTION;
    
    std::lock_guard<std::mutex> lock(stl_mutex);
  
    log_debug (_("==== The SSH header breaks down as follows: ===="));

    ssh_version(0);
}
예제 #7
0
파일: ssh.c 프로젝트: caidongyun/ssh-proxy
static void usage()
{
    fprintf(stderr,"Usage : ssh [options] [login@]hostname\n"
            "sample client - libssh-%s\n"
            "Options :\n"
            "  -l user : log in as user\n"
            "  -p port : connect to port\n"
            "  -d : use DSS to verify host public key\n"
            "  -r : use RSA to verify host public key\n"
#ifndef _WIN32
            "  -T proxycommand : command to execute as a socket proxy\n"
#endif
            ,
            ssh_version(0));
    exit(0);
}
예제 #8
0
 *
 * You should have received a copy of the GNU General Public License
 * along with Guile-SSH.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <libguile.h>
#include <libssh/libssh.h>

/* Get version of the libssh. */
SCM_DEFINE (guile_ssh_get_libssh_version, "%get-libssh-version", 0, 0, 0,
            (),
            "\
Get version of the libssh.\
")
{
    const char *version = ssh_version (0);
    return scm_from_locale_string (version);
}

/* Get version of the Guile-SSH. */
SCM_DEFINE (guile_ssh_get_library_version, "get-library-version", 0, 0, 0,
            (),
            "Get version of the Guile-SSH.")
{
    return scm_from_locale_string (PACKAGE_VERSION);
}


void
init_version (void)
{