Home >

LunaSH Command Reference Guide > LunaSH Commands > sysconf > sysconf ssh port

sysconf ssh port

Set the SSHD listen port number.

Syntax

sysconf ssh port <port>

Parameter            Shortcut Description     
<port>  

Specifies the SSHD listen port number.

Range: 22 or 1024-65535

Default: 22

Example

lunash:>sysconf ssh port 25 
   
This command sets the SSHD listen port number.  
Please make sure that you choose a new port number which is not used by other services.
Invalid New port number 25. It must be between 1024 and 65535 or 22.  
Command Result : 65535 (Luna Shell execution)  
[myluna] lunash:>sysconf ssh port 1024
This command sets the SSHD listen port number. 
Please make sure that you choose a new port number which is not used by other services.
SSH Port Changed from 22 to:   Port 1024  
   
Flushing firewall rules:                                      [  OK  ] 
Setting chains to policy ACCEPT: filter                       [  OK  ] 
Unloading iptables modules:                                   [  OK  ] 
Applying iptables firewall rules:                             [  OK  ] 
Loading additional iptables modules: ip_conntrack_netbios_n   [  OK  ] 
Stopping sshd:                                                [  OK  ] 
Starting sshd:                                                [  OK  ]
 
Command Result : 0 (Success)