version 1.22, 1999/10/03 21:50:04 |
version 1.23, 1999/10/12 21:04:22 |
|
|
fprintf(stderr, " -t Tty; allocate a tty even if command is given.\n"); |
fprintf(stderr, " -t Tty; allocate a tty even if command is given.\n"); |
fprintf(stderr, " -v Verbose; display verbose debugging messages.\n"); |
fprintf(stderr, " -v Verbose; display verbose debugging messages.\n"); |
fprintf(stderr, " -V Display version number only.\n"); |
fprintf(stderr, " -V Display version number only.\n"); |
|
fprintf(stderr, " -P Don't allocate a privileged port.\n"); |
fprintf(stderr, " -q Quiet; don't display any warning messages.\n"); |
fprintf(stderr, " -q Quiet; don't display any warning messages.\n"); |
fprintf(stderr, " -f Fork into background after authentication.\n"); |
fprintf(stderr, " -f Fork into background after authentication.\n"); |
fprintf(stderr, " -e char Set escape character; ``none'' = disable (default: ~).\n"); |
fprintf(stderr, " -e char Set escape character; ``none'' = disable (default: ~).\n"); |
|
|
options.gateway_ports = 1; |
options.gateway_ports = 1; |
break; |
break; |
|
|
|
case 'P': |
|
options.use_privileged_port = 0; |
|
break; |
|
|
case 'a': |
case 'a': |
options.forward_agent = 0; |
options.forward_agent = 0; |
break; |
break; |
|
|
restore_uid(); |
restore_uid(); |
|
|
/* Open a connection to the remote host. This needs root privileges if |
/* Open a connection to the remote host. This needs root privileges if |
rhosts_authentication is true. */ |
rhosts_{rsa_}authentication is true. */ |
|
|
|
if (!options.use_privileged_port) |
|
{ |
|
options.rhosts_authentication = 0; |
|
options.rhosts_rsa_authentication = 0; |
|
} |
|
|
ok = ssh_connect(host, &hostaddr, options.port, options.connection_attempts, |
ok = ssh_connect(host, &hostaddr, options.port, options.connection_attempts, |
!options.rhosts_authentication && |
!options.rhosts_authentication && |
!options.rhosts_rsa_authentication, |
!options.rhosts_rsa_authentication, |