version 1.193, 2006/07/22 20:48:23 |
version 1.194, 2006/07/24 13:58:22 |
|
|
/* |
/* |
* If strict host key checking has not been requested, allow |
* If strict host key checking has not been requested, allow |
* the connection but without MITM-able authentication or |
* the connection but without MITM-able authentication or |
* agent forwarding. |
* forwarding. |
*/ |
*/ |
if (options.password_authentication) { |
if (options.password_authentication) { |
error("Password authentication is disabled to avoid " |
error("Password authentication is disabled to avoid " |
|
|
"man-in-the-middle attacks."); |
"man-in-the-middle attacks."); |
options.num_local_forwards = |
options.num_local_forwards = |
options.num_remote_forwards = 0; |
options.num_remote_forwards = 0; |
|
} |
|
if (options.tun_open != SSH_TUNMODE_NO) { |
|
error("Tunnel forwarding is disabled to avoid " |
|
"man-in-the-middle attacks."); |
|
options.tun_open = SSH_TUNMODE_NO; |
} |
} |
/* |
/* |
* XXX Should permit the user to change to use the new id. |
* XXX Should permit the user to change to use the new id. |