version 1.115, 2003/07/22 13:35:22 |
version 1.116, 2003/08/13 08:46:30 |
|
|
Host fascist.blob.com |
Host fascist.blob.com |
Port 23123 |
Port 23123 |
User tylonen |
User tylonen |
RhostsAuthentication no |
|
PasswordAuthentication no |
PasswordAuthentication no |
|
|
Host puukko.hut.fi |
Host puukko.hut.fi |
|
|
Host * |
Host * |
ForwardAgent no |
ForwardAgent no |
ForwardX11 no |
ForwardX11 no |
RhostsAuthentication yes |
|
PasswordAuthentication yes |
PasswordAuthentication yes |
RSAAuthentication yes |
RSAAuthentication yes |
RhostsRSAAuthentication yes |
RhostsRSAAuthentication yes |
|
|
|
|
typedef enum { |
typedef enum { |
oBadOption, |
oBadOption, |
oForwardAgent, oForwardX11, oGatewayPorts, oRhostsAuthentication, |
oForwardAgent, oForwardX11, oGatewayPorts, |
oPasswordAuthentication, oRSAAuthentication, |
oPasswordAuthentication, oRSAAuthentication, |
oChallengeResponseAuthentication, oXAuthLocation, |
oChallengeResponseAuthentication, oXAuthLocation, |
oKerberosAuthentication, oKerberosTgtPassing, |
oKerberosAuthentication, oKerberosTgtPassing, |
|
|
{ "xauthlocation", oXAuthLocation }, |
{ "xauthlocation", oXAuthLocation }, |
{ "gatewayports", oGatewayPorts }, |
{ "gatewayports", oGatewayPorts }, |
{ "useprivilegedport", oUsePrivilegedPort }, |
{ "useprivilegedport", oUsePrivilegedPort }, |
{ "rhostsauthentication", oRhostsAuthentication }, |
{ "rhostsauthentication", oDeprecated }, |
{ "passwordauthentication", oPasswordAuthentication }, |
{ "passwordauthentication", oPasswordAuthentication }, |
{ "kbdinteractiveauthentication", oKbdInteractiveAuthentication }, |
{ "kbdinteractiveauthentication", oKbdInteractiveAuthentication }, |
{ "kbdinteractivedevices", oKbdInteractiveDevices }, |
{ "kbdinteractivedevices", oKbdInteractiveDevices }, |
|
|
intptr = &options->use_privileged_port; |
intptr = &options->use_privileged_port; |
goto parse_flag; |
goto parse_flag; |
|
|
case oRhostsAuthentication: |
|
intptr = &options->rhosts_authentication; |
|
goto parse_flag; |
|
|
|
case oPasswordAuthentication: |
case oPasswordAuthentication: |
intptr = &options->password_authentication; |
intptr = &options->password_authentication; |
goto parse_flag; |
goto parse_flag; |
|
|
options->xauth_location = NULL; |
options->xauth_location = NULL; |
options->gateway_ports = -1; |
options->gateway_ports = -1; |
options->use_privileged_port = -1; |
options->use_privileged_port = -1; |
options->rhosts_authentication = -1; |
|
options->rsa_authentication = -1; |
options->rsa_authentication = -1; |
options->pubkey_authentication = -1; |
options->pubkey_authentication = -1; |
options->challenge_response_authentication = -1; |
options->challenge_response_authentication = -1; |
|
|
options->gateway_ports = 0; |
options->gateway_ports = 0; |
if (options->use_privileged_port == -1) |
if (options->use_privileged_port == -1) |
options->use_privileged_port = 0; |
options->use_privileged_port = 0; |
if (options->rhosts_authentication == -1) |
|
options->rhosts_authentication = 0; |
|
if (options->rsa_authentication == -1) |
if (options->rsa_authentication == -1) |
options->rsa_authentication = 1; |
options->rsa_authentication = 1; |
if (options->pubkey_authentication == -1) |
if (options->pubkey_authentication == -1) |