'ssh keys' => 'Authentifizierung auf Basis öffentlicher Schlüssel zulassen',
'ssh no auth' => 'Sie haben keinerlei Authentifizierungverfahren zugelassen; dies wird Ihre Anmeldung verhindern',
'ssh passwords' => 'Passwortbasierte Authentifizierung zulassen',
+'ssh port' => 'SSH Port auf 22 setzen (Standard ist 222)',
'ssh portfw' => 'TCP-Weiterleitung zulassen',
'ssh tempstart15' => 'SSH-Deamon in 15 Minuten beenden',
'ssh tempstart30' => 'SSH-Deamon in 30 Minuten beenden',
'ssh keys' => 'Allow public key based authentication',
'ssh no auth' => 'You have not allowed any authentication methods; this will stop you logging in',
'ssh passwords' => 'Allow password based authentication',
+'ssh port' => 'SSH port set to 22 (default is 222)',
'ssh portfw' => 'Allow TCP forwarding',
'ssh tempstart15' => 'Stop SSH demon in 15 minutes',
'ssh tempstart30' => 'Stop SSH demon in 30 minutes',
'ssh keys' => 'Allow public key based authentication',
'ssh no auth' => 'You have not allowed any authentication methods; this will stop you logging in',
'ssh passwords' => 'Allow password based authentication',
+'ssh port' => 'SSH port set to 22 (default is 222)',
'ssh portfw' => 'Allow TCP forwarding',
'ssh tempstart15' => 'Stop SSH demon in 15 minutes',
'ssh tempstart30' => 'Stop SSH demon in 30 minutes',
strlcat(command, "s/^PasswordAuthentication .*$/PasswordAuthentication yes/;", STRING_SIZE - 1 );
if(findkey(kv, "ENABLE_SSH_PORTFW", buffer) && !strcmp(buffer,"on"))
- strlcat(command, "s/^AllowTcpForwarding .*$/AllowTcpForwarding yes/", STRING_SIZE - 1 );
+ strlcat(command, "s/^AllowTcpForwarding .*$/AllowTcpForwarding yes/;", STRING_SIZE - 1 );
else
- strlcat(command, "s/^AllowTcpForwarding .*$/AllowTcpForwarding no/", STRING_SIZE - 1 );
+ strlcat(command, "s/^AllowTcpForwarding .*$/AllowTcpForwarding no/;", STRING_SIZE - 1 );
+
+ if(findkey(kv, "SSH_PORT", buffer) && !strcmp(buffer,"on"))
+ strlcat(command, "s/^Port .*$/Port 22/", STRING_SIZE - 1 );
+ else
+ strlcat(command, "s/^Port .*$/Port 222/", STRING_SIZE - 1 );
freekeyvalues(kv);