We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 463b51f commit 911c8d5Copy full SHA for 911c8d5
bin/v-list-sys-sshd-port
@@ -59,7 +59,13 @@ csv_list() {
59
# Variable&Function #
60
#----------------------------------------------------------#
61
62
-ports=$(sshd -T -C "user=root" | grep '^port'| cut -d ' ' -f2);
+version=$(lsb_release -s -r)
63
+
64
+if [[ "$version" = 9 || "$version" = 10 ]]; then
65
+ ports=$(sshd -T -C "user=root" | grep '^port'| cut -d ' ' -f2);
66
+else
67
+ ports=$(sshd -T | grep '^port'| cut -d ' ' -f2);
68
+fi
69
70
# Listing data
71
case $format in
0 commit comments