Jump to content

error starting ssh server


Recommended Posts

6 minutes ago, m40295 said:

I'm pretty sure the SSH server is independent don't use 22 as that's your SSH for your VPS leave it as the default

-Sshserver 2022

This is correct. The port you specifiy there is the port for the server the C2 spins up. Not your already running SSH server.

If you want the C2 SSH server to run on 22, you'd have to move your current SSH server to another port.

Edit: if you want to use ports below 1024, you'll need to run the Cloud C2 as root.

Link to comment
Share on other sites

  • 2 weeks later...
  • 8 months later...
xxx-xxx-xxx-xxx for the internal IP address of the box
yyy-yyy-yyy-yyy for the external(internet) IP address of the box
xxxxx.security.com is just a dynamic DNS address that I have registered with a provider

ubuntu@ip-xxx-xxx-xxx-xxx:~$ ./c2_community-linux-64 -hostname xxxxx.security.com -listenip xxx-xxx-xxx-xxx -https -sshport 2022

Just to add,  that I also fell foul of this when running in an EC2 instance in AWS

Don't forget that the IP is the INTERNAL ip of the box,  not the Elastic IP that is associated with the EC2 instance,  otherwise you get the

[*] Initializing Hak5 Cloud C2
[!] Error starting SSH server


Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 4 months later...


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...