ssh.c (57430) | ssh.c (57432) |
---|---|
1/* 2 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * All rights reserved 5 * Created: Sat Mar 18 16:36:11 1995 ylo 6 * Ssh client program. This program can be used to log into a remote machine. 7 * The software supports strong authentication, encryption, and forwarding 8 * of X11, TCP/IP, and authentication connections. 9 * 10 * Modified to work with SSL by Niels Provos <provos@citi.umich.edu> in Canada. | 1/* 2 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * All rights reserved 5 * Created: Sat Mar 18 16:36:11 1995 ylo 6 * Ssh client program. This program can be used to log into a remote machine. 7 * The software supports strong authentication, encryption, and forwarding 8 * of X11, TCP/IP, and authentication connections. 9 * 10 * Modified to work with SSL by Niels Provos <provos@citi.umich.edu> in Canada. |
11 * 12 * $FreeBSD: head/crypto/openssh/ssh.c 57432 2000-02-24 15:29:42Z markm $ |
|
11 */ 12 13#include "includes.h" 14RCSID("$Id: ssh.c,v 1.40 2000/02/20 20:05:19 markus Exp $"); 15 16#include "xmalloc.h" 17#include "ssh.h" 18#include "packet.h" --- 107 unchanged lines hidden (view full) --- 126rsh_connect(char *host, char *user, Buffer * command) 127{ 128 char *args[10]; 129 int i; 130 131 log("Using rsh. WARNING: Connection will not be encrypted."); 132 /* Build argument list for rsh. */ 133 i = 0; | 13 */ 14 15#include "includes.h" 16RCSID("$Id: ssh.c,v 1.40 2000/02/20 20:05:19 markus Exp $"); 17 18#include "xmalloc.h" 19#include "ssh.h" 20#include "packet.h" --- 107 unchanged lines hidden (view full) --- 128rsh_connect(char *host, char *user, Buffer * command) 129{ 130 char *args[10]; 131 int i; 132 133 log("Using rsh. WARNING: Connection will not be encrypted."); 134 /* Build argument list for rsh. */ 135 i = 0; |
136#ifndef _PATH_RSH 137#define _PATH_RSH "/usr/bin/rsh" 138#endif |
|
134 args[i++] = _PATH_RSH; 135 /* host may have to come after user on some systems */ 136 args[i++] = host; 137 if (user) { 138 args[i++] = "-l"; 139 args[i++] = user; 140 } 141 if (buffer_len(command) > 0) { --- 662 unchanged lines hidden --- | 139 args[i++] = _PATH_RSH; 140 /* host may have to come after user on some systems */ 141 args[i++] = host; 142 if (user) { 143 args[i++] = "-l"; 144 args[i++] = user; 145 } 146 if (buffer_len(command) > 0) { --- 662 unchanged lines hidden --- |