{"id":27832301,"url":"https://github.com/PAPAMICA/sshtools","last_synced_at":"2025-05-02T07:01:55.641Z","repository":{"id":289158922,"uuid":"970299725","full_name":"PAPAMICA/sshtools","owner":"PAPAMICA","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-24T19:54:01.000Z","size":58,"stargazers_count":18,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T00:07:20.607Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PAPAMICA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-21T19:53:21.000Z","updated_at":"2025-04-28T13:58:18.000Z","dependencies_parsed_at":"2025-04-22T04:40:37.611Z","dependency_job_id":null,"html_url":"https://github.com/PAPAMICA/sshtools","commit_stats":null,"previous_names":["papamica/sshtools"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PAPAMICA%2Fsshtools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PAPAMICA%2Fsshtools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PAPAMICA%2Fsshtools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PAPAMICA%2Fsshtools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PAPAMICA","download_url":"https://codeload.github.com/PAPAMICA/sshtools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251999658,"owners_count":21678020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-02T07:01:54.449Z","updated_at":"2025-05-02T07:01:55.610Z","avatar_url":"https://github.com/PAPAMICA.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://mickaelasseline.com\"\u003e\n    \u003cimg src=\"https://zupimages.net/up/20/04/7vtd.png\" width=\"140px\" alt=\"PAPAMICA\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#\"\u003e\u003cimg src=\"https://readme-typing-svg.herokuapp.com?center=true\u0026vCenter=true\u0026lines=SSH+Tools;\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cdiv align=\"center\"\u003e\nA collection of powerful tools to enhance your SSH experience with custom configurations for bash, vim, and various utility functions.\n\u003c/div\u003e\n\n## Somes screenshots\n\n### MOTD\n![motd](https://send.papamica.com/f.php?h=0RitcJ-1\u0026d=1)\n\n### Benchmark\n![benchmark](https://send.papamica.com/f.php?h=30YTBUpG\u0026d=1)\n\n### Webshare\n![webshare1](https://send.papamica.com/f.php?h=306Ssezy\u0026d=1)\n![webshare2](https://send.papamica.com/f.php?h=2LDCsXLz\u0026d=1)\n\n### Checksec\n![checksec](https://send.papamica.com/f.php?h=12Y1Ik0x\u0026d=1)\n\n### Less color\n![lesscolor](https://send.papamica.com/f.php?h=35xoRCDD\u0026d=1)\n\n## 🌟 Features\n\n### 🔧 Enhanced Shell Experience\n- Custom prompt with color-coded usernames\n- Comprehensive system information display (MOTD)\n- Advanced command history search\n- Colored output for logs and commands\n- Automatic package management detection and installation\n\n### 📝 Vim Configuration\n- Modern dark theme optimized for readability\n- Line numbers and syntax highlighting\n- Enhanced status line with mode indicator\n- Mouse support\n- Improved key mappings for navigation\n- File type specific settings\n\n### 🛠️ Utility Functions\n- `benchmark`: Comprehensive system performance testing\n- `checksec`: Security audit and recommendations\n- `webshare`: Easy file sharing via HTTP\n- `logwatch`: Real-time log monitoring with color highlighting\n- `extract`: Universal archive extraction\n- `compress`: File compression with multiple formats\n- And many more...\n\n### 🎨 Color-Enhanced Commands\n- Enhanced `less` with syntax highlighting\n- Colored `tail` output\n- Improved directory listings\n- Better log readability\n\n## 🚀 Installation\n\n1. Clone this repository:\n```bash\ngit clone https://github.com/PAPAMICA/sshtools.git ~/.sshtools\n```\n\n2. Add the following function to your `~/.bashrc` or `~/.zshrc`:\n```bash\nssh() {\n    if [ -f \"$HOME/.sshtools/.bashrc_remote\" ] \u0026\u0026 [ -f \"$HOME/.sshtools/.vimrc_remote\" ] \u0026\u0026 [ -f \"$HOME/.sshtools/.webshare.py\" ]; then\n        # Compress and encode files\n        REMOTE_BASHRC=$(gzip -c \"$HOME/.sshtools/.bashrc_remote\" | base64)\n        REMOTE_VIMRC=$(gzip -c \"$HOME/.sshtools/.vimrc_remote\" | base64)\n        REMOTE_WEBSHARE=$(gzip -c \"$HOME/.sshtools/.webshare.py\" | base64)\n        /usr/bin/ssh -t $1 \"\n            echo '$REMOTE_BASHRC' | base64 -d | gunzip \u003e /tmp/.bashrc_remote \u0026\u0026 \\\n            echo '$REMOTE_VIMRC' | base64 -d | gunzip \u003e /tmp/.vimrc_remote \u0026\u0026 \\\n            echo '$REMOTE_WEBSHARE' | base64 -d | gunzip \u003e /tmp/webshare.py \u0026\u0026 \\\n            bash --rcfile /tmp/.bashrc_remote\n        \"\n    else\n        /usr/bin/ssh \"$@\"\n    fi\n}\n\nalias sshc=\"/usr/bin/ssh\"\n```\n\n3. Source your shell configuration:\n```bash\nsource ~/.bashrc  # or source ~/.zshrc\n```\n4. SSH your server:\n```bash\nssh your_server\n```\n\nNote : Add your server to your ssh_config.\n\n## 📚 Available Commands\n\n### System Information\n- `motd`: Display welcome message with system information\n- `benchmark`: Run comprehensive server performance tests\n- `checksec`: Perform security audit\n- `logwatch`: Watch system logs in real-time\n\n### File Management\n- `extract`: Extract any type of archive\n- `compress`: Compress files/directories\n- `findfile`: Search for files with color highlighting\n- `tree`: Display directory structure\n- `diskspace`: Analyze disk usage\n- `webshare`: Start a web file sharing server\n- `webshare_cleanup`: Clean up webshare server\n\n### Editor Commands\n- `p` / `hp`: Show/hide current path in prompt\n- `vic`: Vim with custom configuration\n\n### System Commands\n- `start/stop/restart`: Service management\n- `status`: Service status\n- `enable/disable`: Enable/disable services\n- `reload`: Reload service configuration\n- `oomanalyser`: Analyze out of memory events\n\n### Network Commands\n- `ports`: Show listening ports\n- `myip`: Show public IP\n- `localip`: Show local IP\n\n### Monitoring Commands\n- `topcpu`: Show top 10 CPU processes\n- `topmem`: Show top 10 memory processes\n- `df`: Show disk usage\n- `du`: Show directory usage\n- `free`: Show memory usage\n\n### Git Commands\n- `gs`: Git status\n- `ga`: Git add\n- `gc`: Git commit\n- `gp`: Git push\n- `gl`: Git pull\n- `gd`: Git diff\n\n### Docker Commands\n- `dps`: List running containers\n- `dls`: List all containers\n- `dim`: List images\n- `dlog`: Show container logs\n- `dstop`: Stop container\n- `drm`: Remove container\n- `drmi`: Remove image\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## 🙏 Acknowledgments\n\n- Thanks to all contributors who have helped enhance these tools\n- Inspired by various shell customization projects and system administration tools","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPAPAMICA%2Fsshtools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPAPAMICA%2Fsshtools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPAPAMICA%2Fsshtools/lists"}