#Port 22 Port 4444 #### Port 4444 Port 4444 #### while () { next if ( /^#/ ); s/^port.+/Port $sshport/i; print SSHD_CONFIG_NEW; } #### while () { s/^port.+/Port $sshport/i; print SSHD_CONFIG_NEW; }
## Port 4444 Port 4444 ##
## while () { next if ( /^#/ ); s/^port.+/Port $sshport/i; print SSHD_CONFIG_NEW; } ##
## while () { s/^port.+/Port $sshport/i; print SSHD_CONFIG_NEW; }