Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

can't change ssh port number

General questions about VestaCP
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
maha22
Posts: 8
Joined: Thu Feb 06, 2020 7:11 pm

Os: CentOS 6x
Web: nginx + php-fpm
can't change ssh port number
  • Quote

Post by maha22 » Thu Feb 06, 2020 7:35 pm

hi greetings everyone
i'm new to this panel and i like how it works so far, i have few issues and i hope someone can help me out..
my first issue is i can't change ssh port number
i did search for topic here and i followed this topic very carefully found here viewtopic.php?t=6235
but still not able to change it
any idea guys?
Top

exclu254
Posts: 44
Joined: Mon Dec 23, 2019 6:44 pm

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: can't change ssh port number
  • Quote

Post by exclu254 » Fri Feb 07, 2020 2:42 am

maha22 wrote: ↑
Thu Feb 06, 2020 7:35 pm
hi greetings everyone
i'm new to this panel and i like how it works so far, i have few issues and i hope someone can help me out..
my first issue is i can't change ssh port number
i did search for topic here and i followed this topic very carefully found here viewtopic.php?t=6235
but still not able to change it
any idea guys?
What steps have you done so far?
Top

3vw
Posts: 3
Joined: Mon Apr 09, 2018 11:33 am

Os: Debian 8x
Web: apache + nginx
Re: can't change ssh port number
  • Quote

Post by 3vw » Fri Feb 21, 2020 2:30 am

In the SSH terminal

Code: Select all

nano /etc/ssh/sshd_config
change where you put #Port 22 by Port xxxx
(xxx = put the new port)
(without #)

To save the change: Ctrl + o + enter
("o" vowel, not number)
To close and exit nano: Ctrl + x + enter

Then

Code: Select all

/etc/init.d/ssh restart
Top

allenb
Posts: 3
Joined: Wed Feb 19, 2020 6:49 pm

Os: CentOS 6x
Web: apache + nginx
Re: can't change ssh port number
  • Quote

Post by allenb » Tue Feb 25, 2020 1:23 pm

Best to use: service sshd restart

As init.d is only for centos 6.
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password