Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-20, 11:00:09

Author Topic: help changing default ssh port 22  (Read 7273 times)

0 Members and 1 Guest are viewing this topic.

Offline befree22

  • Valuable Member
  • *
  • Posts: 95
  • Karma: +0/-1
    • View Profile
help changing default ssh port 22
« on: 2014-02-22, 22:03:53 »
I'd like help changing the default ssh listening port 22 to something that is more difficult to find. For example, I'd like to change it to 10000 or some other number.

Can I change the ssh port 22 in admin > Security > SSH Config  from 22 to 129 or 1003 or higher?
Or do I need to use ssh command to change ssh port 22 to 129 or 1003 or higher?

This is the message I get for SSH Config in admin > Security



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: help changing default ssh port 22
« Reply #1 on: 2014-02-22, 23:20:31 »
Yes, you can.

Better change port number with more than higher than 16000 because possible not use by other services.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline befree22

  • Valuable Member
  • *
  • Posts: 95
  • Karma: +0/-1
    • View Profile
Re: help changing default ssh port 22
« Reply #2 on: 2014-02-24, 22:27:02 »
Can I change the ssh port 22 in admin > Security > SSH Config  from 22 to 16000 or higher?
Or do I need to use ssh command to change ssh port 22 to 16000 or higher?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: help changing default ssh port 22
« Reply #3 on: 2014-02-25, 02:14:09 »
You can change from panel. You found warning because you didn't select ssh port after install and panel don't know it.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline bigdigillc

  • Senior Member
  • *
  • Posts: 156
  • Karma: +1/-0
    • View Profile
Re: help changing default ssh port 22
« Reply #4 on: 2014-07-30, 00:57:23 »
I am trying to change the port for SSH as well, and no matter what I do it doesn't work. I just lose SSH access when changing the port via the Klxoo UI. Any advice?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: help changing default ssh port 22
« Reply #5 on: 2014-07-30, 08:42:56 »
May trouble if enable firewall. Need modified firewall too.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline bigdigillc

  • Senior Member
  • *
  • Posts: 156
  • Karma: +1/-0
    • View Profile
Re: help changing default ssh port 22
« Reply #6 on: 2014-07-30, 15:01:11 »
Thank you. I have searched the forums, but I am having trouble finding where to edit IPTables. Which file do I edit?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: help changing default ssh port 22
« Reply #7 on: 2014-08-04, 19:38:46 »
Inform here 'service iptables status'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline bigdigillc

  • Senior Member
  • *
  • Posts: 156
  • Karma: +1/-0
    • View Profile
Re: help changing default ssh port 22
« Reply #8 on: 2014-08-04, 22:29:33 »
Code: [Select]
Table: filter
Chain INPUT (policy DROP)
num  target     prot opt source               destination         
1    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:22
2    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
3    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
4    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0           
5    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:53
6    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:53
7    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpts:20:21
8    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpts:30000:50000
9    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
10   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:80
11   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:443
12   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:25
13   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:110
14   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:143
15   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpts:7777:7778
16   ACCEPT     tcp  --  xx.xxx.xxx.xxx       0.0.0.0/0           tcp dpt:7779
17   ACCEPT     tcp  --  xx.xxx.xxx.xxx       0.0.0.0/0           tcp dpt:3306

Chain FORWARD (policy DROP)
num  target     prot opt source               destination         

Chain OUTPUT (policy DROP)
num  target     prot opt source               destination         
1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
2    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
3    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0           
4    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:53
5    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:53
6    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:123
7    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpts:20:21
8    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpts:30000:50000
9    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:80
10   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:443
11   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:25
12   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:110
13   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:143
14   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpts:7777:7778
15   ACCEPT     tcp  --  0.0.0.0/0            xx.xxx.xxx.xxx      tcp dpt:7779
16   ACCEPT     tcp  --  0.0.0.0/0            xx.xxx.xxx.xxx      tcp dpt:3306

Chain syn-flood (0 references)
num  target     prot opt source               destination         
1    RETURN     all  --  0.0.0.0/0            0.0.0.0/0           limit: avg 10/sec burst 50
2    LOG        all  --  0.0.0.0/0            0.0.0.0/0           LOG flags 0 level 4 prefix `SYN FLOOD: '
3    DROP       all  --  0.0.0.0/0            0.0.0.0/0           


I thought I had changed this, but maybe I am editing the wrong file. In which file are the rules kept?

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.029 seconds with 21 queries.

web stats analysis