Jump to content
Sizzlik

Cant connect to C2

Recommended Posts

Hi guys..hope you can help me out.

Im kinda new to linux and webhosting but im trying to learn.

I rented a rootserver (debian 9), registered a domain at domain.com and point it to the server..i opened input tcp port 80 and 443 in the iptables..now when i start c2 (even with just the ip given as hostname and no https) i cant connect to c2..it says ERR_CONNECTION_REFUSED.

The system is fresh, nothing installed or changed (except my iptables entry), the domain leads to the right IP. Im having trouble getting SSL running..but for now i would be happy if i could connect even with an unencrypted connection. Im playing around while learning..but now im stuck..please help.

Share this post


Link to post
Share on other sites

Topic can get deleted..i got it. Seems it just took ages for domain.com to set everything 100%. Just worked all of a sudden

Share this post


Link to post
Share on other sites

Now i ran into the next problem..how do i keep the C2 running? When i close the ssh session the C2 stops

Share this post


Link to post
Share on other sites

Look up the screen command.

Basic use is you prefix your c2 startup command with screen. This allows you to drop the ssh connection leaving c2 running. When you reconnect using ssh, typing screen -r reattaches the running c2 session.

EDIT:

You might want to avoid looking up the man page for screen because it's one of those that you can read and be none the wiser unless you already know how to use it!! There are many "How To" type of postings that will show you the basic use you need.

Edited by aethernaut

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...