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

Open Ssh Port On Firewall From Terminal Topic is solved

General questions about VestaCP
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
erhankilic
Posts: 3
Joined: Wed Apr 11, 2018 7:07 am
Contact:
Contact erhankilic
Website

Os: Ubuntu 15x
Web: apache + nginx
Open Ssh Port On Firewall From Terminal
  • Quote

Post by erhankilic » Wed Apr 11, 2018 7:22 am

Hello everyone,

I closed the ssh port on vesta panel firewall. When I must connect to server via ssh, I open ssh port from vesta panel then connect. But right now I can't do it because digital ocean blocked the 8083 port and their browser console is terrible. How can I open ssh port from terminal?

Thanks.
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Open Ssh Port On Firewall From Terminal
  • Quote

Post by imperio » Wed Apr 11, 2018 7:35 am

Hi,
you want open ssh port or vestacp port ?
Top

ahouse
Posts: 171
Joined: Fri Sep 01, 2017 1:05 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Open Ssh Port On Firewall From Terminal
  • Quote

Post by ahouse » Wed Apr 11, 2018 7:35 am

erhankilic wrote: ↑
Wed Apr 11, 2018 7:22 am
Hello everyone,

I closed the ssh port on vesta panel firewall. When I must connect to server via ssh, I open ssh port from vesta panel then connect. But right now I can't do it because digital ocean blocked the 8083 port and their browser console is terrible. How can I open ssh port from terminal?

Thanks.

Hi, Erhankilic!

You can change FireWall rules at the file /usr/local/vesta/data/firewall/rules.conf, and than restart iptable service

Rule for example:

Code: Select all

RULE='100' ACTION='ACCEPT' PROTOCOL='TCP' PORT='22' IP='0.0.0.0/0' COMMENT='SSH' SUSPENDED='no' TIME='17:14:41' DATE='2014-09-16'
Last edited by ahouse on Wed Apr 11, 2018 7:39 am, edited 3 times in total.
Top

erhankilic
Posts: 3
Joined: Wed Apr 11, 2018 7:07 am
Contact:
Contact erhankilic
Website

Os: Ubuntu 15x
Web: apache + nginx
Re: Open Ssh Port On Firewall From Terminal
  • Quote

Post by erhankilic » Wed Apr 11, 2018 7:37 am

imperio wrote: ↑
Wed Apr 11, 2018 7:35 am
Hi,
you want open ssh port or vestacp port ?
I want to open ssh port.
Top

erhankilic
Posts: 3
Joined: Wed Apr 11, 2018 7:07 am
Contact:
Contact erhankilic
Website

Os: Ubuntu 15x
Web: apache + nginx
Re: Open Ssh Port On Firewall From Terminal
  • Quote

Post by erhankilic » Wed Apr 11, 2018 7:46 am

ahouse wrote: ↑
Wed Apr 11, 2018 7:35 am
erhankilic wrote: ↑
Wed Apr 11, 2018 7:22 am
Hello everyone,

I closed the ssh port on vesta panel firewall. When I must connect to server via ssh, I open ssh port from vesta panel then connect. But right now I can't do it because digital ocean blocked the 8083 port and their browser console is terrible. How can I open ssh port from terminal?

Thanks.

Hi, Erhankilic!

You can change FireWall rules at the file /usr/local/vesta/data/firewall/rules.conf, and than restart iptable service

Rule for example:

Code: Select all

RULE='100' ACTION='ACCEPT' PROTOCOL='TCP' PORT='22' IP='0.0.0.0/0' COMMENT='SSH' SUSPENDED='no' TIME='17:14:41' DATE='2014-09-16'
Thank you very much! I made suspended to no and restarted it.
Top

ahouse
Posts: 171
Joined: Fri Sep 01, 2017 1:05 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Open Ssh Port On Firewall From Terminal
  • Quote

Post by ahouse » Wed Apr 11, 2018 7:51 am

erhankilic wrote: ↑
Wed Apr 11, 2018 7:46 am
ahouse wrote: ↑
Wed Apr 11, 2018 7:35 am
erhankilic wrote: ↑
Wed Apr 11, 2018 7:22 am
Hello everyone,

I closed the ssh port on vesta panel firewall. When I must connect to server via ssh, I open ssh port from vesta panel then connect. But right now I can't do it because digital ocean blocked the 8083 port and their browser console is terrible. How can I open ssh port from terminal?

Thanks.

Hi, Erhankilic!

You can change FireWall rules at the file /usr/local/vesta/data/firewall/rules.conf, and than restart iptable service

Rule for example:

Code: Select all

RULE='100' ACTION='ACCEPT' PROTOCOL='TCP' PORT='22' IP='0.0.0.0/0' COMMENT='SSH' SUSPENDED='no' TIME='17:14:41' DATE='2014-09-16'
Thank you very much! I made suspended to no and restarted it.
I am glad to help you! :)
Top


Post Reply
  • Print view

6 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