Skip to content

Instantly share code, notes, and snippets.

@TurBoss
Forked from sleimanzublidi/Cloudbox
Created July 23, 2016 15:26
Show Gist options
  • Save TurBoss/03d456bbe4b200d4b44e1f363ef2ce0b to your computer and use it in GitHub Desktop.
Save TurBoss/03d456bbe4b200d4b44e1f363ef2ce0b to your computer and use it in GitHub Desktop.
Cloudbox SSH
t's quite easy, no disassembling required.
1. Enable SFTP in the web interface
2. Open a SFTP connection to the box using your admin account
3. Change directory to the Admin: cd Admin
4. Create a link for default.runlevel file: symlink /etc/initng/runlevel/default.runlevel default.runlevel
5. Create a link for shadow file: symlink /etc/shadow shadow
6. Create a link for unicorn.sharing.ssh.conf file: symlink /etc/unicorn/unicorn_conf/unicorn.sharing.ssh.conf unicorn.sharing.ssh.conf
7. You can close SFTP connection now
8. Open the web file manager in your browser and navigate to the Admin folder
9. Right click on default.runlevel and select edit in source editor, uncomment sshd entry, save
10. Right click on unicorn.sharing.ssh.conf and select edit in source editor, enable ssh by replacing false by true (enabled: true), save
11. Reboot
12. Open the web file manager in your browser and navigate to the Admin folder
13. Right click on shadow and select edit in source editor, replace root hash by admin hash, save
Now you can connect to the port 2222 using root login and admin's password. Shadow file will be overwritten on next reboot, so next time your need to edit shadow again (so, do not remove that symlink) or use key authentification for permanent solution.
get public ip
wget -qO- http://ipecho.net/plain ; echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment