How do I change the port IPCOP uses for SSH?

You need to manually edit several files, use the following steps:

  1. Edit SSH configuration files
    • Connect to IPCOP via SSH using port 222
      (on Windows connect using Putty [see Running Commands on IPCOP Tutorial])
    • Type
           cd /etc/ssh
           vi sshd_config
    • Find ’Port 222’ and replace with the port number you wish to use
    • save and close sshd_config
  2. Change the port forwarding reserves
    • Edit ’/home/httpd/cgi-bin/portfw.cgi’
    • Find line that looks like this:
           my @tcp_reserved = (81,222,445);
    • Change the 222 to the same port you changed above
    • Save the changes
  3. Restart SSH
    • Run
           /usr/local/bin/restartssh

      This will terminate your SSH session. Reconnect on the port you set to verify SSH has changed.

If you enabled External Access, update the rules to reflect your new SSH port.

faq/manage/ssh.txt · Last modified: 2008/09/24 00:05 by ds531