Project

General

Profile

« Previous | Next » 

Revision fff3fe89

Added by Jose Luis Duran over 9 years ago

Fix sshd can't load key log spam

Closes [6143](https://redmine.pfsense.org/issues/6143)

View differences:

src/etc/sshd
105 105
	$sshconf .= "ClientAliveInterval 30\n";
106 106
	$sshconf .= "UseDNS no\n";
107 107
	$sshconf .= "X11Forwarding no\n";
108
	foreach ($keys as $key) {
109
		$sshconf .= "HostKey {$sshConfigDir}/ssh_host_{$key['suffix']}key\n";
110
	}
108 111
	if (isset($config['system']['ssh']['sshdkeyonly'])) {
109 112
		$sshconf .= "# Login via Key only\n";
110 113
		$sshconf .= "PasswordAuthentication no\n";

Also available in: Unified diff