Skip to content

Commit

Permalink
Update ssh_config.md
Browse files Browse the repository at this point in the history
updated ports regular expression to allow only ports numbers from 1 to 65536
  • Loading branch information
ycoheNvidia authored Mar 9, 2023
1 parent a70d337 commit b884d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/ssh_config/ssh_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ module sonic-ssh-server {
description "ssh port numbers";
default "22";
type string {
pattern '[1-9]\d{0,4}(,[1-9]\d{0,4})*' {
pattern '([1-9]|[1-9]\d{1,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-6])(,([1-9]|[1-9]\d{1,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-6]))*' {
error-message "Invalid port numbers value";
error-app-tag ssh-server-ports-invalid-value;
}
Expand Down

0 comments on commit b884d4f

Please sign in to comment.