FleexSecurity / fleex

Fleex makes it easy to create multiple VPS on cloud providers and use them to distribute workloads.

Home Page:https://fleexsecurity.github.io/fleex-docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default username not changed

MPaandeey opened this issue · comments

Default username not changed after changed username in config.
fleex ssh connect with default username op not and connet with custum user name root in config

2021-07-08 08_39_22-Window

provider: linode
public-ssh-file: id_rsa.pub
private-ssh-file: id_rsa
linode:
  token: 71c0d8ec6bd5
  region: eu-central
  size: g6-nanode-1
  image: private/12937769
  port: 22
  username: root
  password: ttpTT4fab$tm
digitalocean:
  token: YOUR_DIGITALOCEAN_TOKEN
  region: fra1
  size: s-1vcpu-1gb
  image: 12345678 # put your image id here
  port: 2266
  username: op
  password: USER_PASSWORD
  tags:
    - vps
    - fleex
commented

Hi, I would like to thank you for this report, I have now updated the code related to the ssh command solving the problem.

config.yaml

linode:
  ...
  username: {{USERNAME}}
  ...

or use:

fleex ssh -n pwn-1 -u {{USERNAME}}

This overrides the username present in config.yaml


Try again and let me know if it works

when i use this config username: {{root}} got invalid provider error and port value also not overrides default value.
Unable to check fleex ssh -n pwn-1 -u {{USERNAME}} due to port value not overrides the default value.

commented

Sorry for the misunderstanding, I used the {{}} as an example.
Try with

linode:
  ...
  username: root
  ...
fleex ssh -u root

if you want to change port use fleex ssh --port 22
fleex ssh -h for help

Remember to download the latest update

 GO111MODULE=on go get -v github.com/sw33tLie/fleex

i tried it on my pc and it works perfectly

Yes,Working fleex ssh --port 22 -n vmp-1 -u root but i mentioned custum port and username in config file why these data not override default value.
i tried without port and username fleex ssh -n vmp-1 command but i got error ssh: connect to host 172.104.142.132 port 2266: Connection refused note that i mentioned port 22 on config but it connects with default port 2266

My config

# Supported providers
provider: linode
# SSH keys in $HOME/.ssh/
public-ssh-file: id_rsa.pub
private-ssh-file: id_rsa

# Settings for linode provider
linode:
  # Token: My profile > API Tokens > Create Personal Access Token
  token: 17845828fe3
  # Region & Size, see fleex-docs for more info
  region: eu-central
  size: g6-nanode-1
  # Put your image id here
  # Run "fleex images" to get it
  image: private/12937769
  # Settings for SSH command
  port: 22
  username: root
  # You can set custom passwords for creating vps 
  password: USER_PASSWORD

# Settings for Digitalocean provider
digitalocean:
  # Token: API > Tokens/Keys > Generate New Token
  token: YOUR_DIGITALOCEAN_TOKEN
  # Region & Size, see fleex-docs for more info
  region: fra1
  size: s-1vcpu-1gb
  # Put your image id here
commented

I pushed an update now
Can you try again?

fleex ssh working good with custum value but fleex scan and fleex run not working with config port and username

commented

Thanks again, I have now pushed the fixes of the bugs related to the flags of the ssh, run and scan commands

Let me know if it works correctly

Working good.Thank you