sudo apt-get install npm
npm i cloudcmd -g
- Create Configuration
sudo nano ~/.cloudcmd.json
- Put Content
{
"name" : "",
"auth" : true,
"username" : "root",
"password" : "",
"algo" : "SHA1",
"editor" : "edward",
"packer" : "zip",
"diff" : true,
"zip" : true,
"buffer" : true,
"dirStorage" : true,
"online" : true,
"open" : false,
"oneFilePanel" : false,
"keysPanel" : true,
"port" : 8000,
"ip" : null,
"root" : "/var/www",
"prefix" : "",
"progress" : true,
"confirmCopy" : true,
"confirmMove" : true,
"showConfig" : false,
"showFileName" : true,
"contact" : true,
"configDialog" : true,
"console" : true,
"syncConsolePath" : false,
"terminal" : false,
"terminalPath" : "",
"terminalCommand" : "",
"terminalAutoRestart" : true,
"vim" : false,
"columns" : "name-size-date-owner-mode",
"export" : false,
"exportToken" : "root",
"import" : false,
"import-url" : "http://localhost:8000",
"importToken" : "root",
"importListen" : false,
"log" : true
}
- Put Password
sudo cloudcmd --username root --password "ABCDEFG" --auth --save --no-server
- Open Ports
sudo ufw allow 8000
- Check Port Status
sudo ufw status
- Enable CloudCmd at Startup
sudo crontab -e
Put Line
@reboot /usr/bin/cloudcmd
- Start Server
cloudcmd &
Leave a Reply