{"id":14069707,"url":"https://github.com/depau/shcrt","last_synced_at":"2025-07-31T00:33:10.591Z","repository":{"id":72603516,"uuid":"206891994","full_name":"depau/shcrt","owner":"depau","description":"Shell script to replace SecureCRT/FX","archived":false,"fork":false,"pushed_at":"2021-05-01T20:50:33.000Z","size":96,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-12T05:38:15.380Z","etag":null,"topics":["free-software","gnulinux","linux","securecrt","ssh","wsl"],"latest_commit_sha":null,"homepage":"https://aur.archlinux.org/packages/shcrt-git/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/depau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2019-09-07T00:13:08.000Z","updated_at":"2025-02-21T15:51:47.000Z","dependencies_parsed_at":"2023-05-12T10:15:54.399Z","dependency_job_id":null,"html_url":"https://github.com/depau/shcrt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/depau/shcrt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depau%2Fshcrt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depau%2Fshcrt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depau%2Fshcrt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depau%2Fshcrt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/depau","download_url":"https://codeload.github.com/depau/shcrt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depau%2Fshcrt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267966466,"owners_count":24173549,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["free-software","gnulinux","linux","securecrt","ssh","wsl"],"created_at":"2024-08-13T07:07:09.475Z","updated_at":"2025-07-31T00:33:10.533Z","avatar_url":"https://github.com/depau.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# shcrt\n\nSecureCRT session browser for GNU/Linux and Windows Subsystem for Linux.\n\nIt should also work on macOS with some changes but YMMV.\n\nBeta quality. I use it on a daily basis, it should work in most cases.\n\n![Screenshot](https://i.postimg.cc/C57BG5Nf/screen.png)\n\n## Features\n\n- Browse SecureCRT sessions\n- Search through them\n- Parse SSH sessions and generate a OpenSSH command line\n- Run SSH or an SFTP client such as FileZilla\n- Password is automatically copied to clipboard if found\n- Works with WSL1 and WSL2 - session files are read from the Windows SecureCRT installation\n\n## How to use\n\n### Arch Linux (including Arch on WSL)\n\nAUR package: https://aur.archlinux.org/packages/shcrt-git/\n\n### Other distributions (including WSL)\n\nIt should work both natively on GNU/Linux and on Windows under WSL, provided you have\n`bash`, `python3`, `pycrypto` for Python3 and your favorite dialog tool\n((c)`dialog` works everywhere).\n\n- Clone it with `--recursive`\n  ```bash\n  git clone --recursive https://github.com/Depau/shcrt.git\n  ```\n- If you forgot about it...\n  ```bash\n  git submodule init\n  git submodule update\n  ```\n- Simply run the script:\n  ```bash\n  ./shcrt\n  ```\n  \n## Configuration\n\nConfiguration can be placed in `~/.shcrtrc`. It must be a sourceable by bash, use bash syntax.\n\n### Custom GUI mode\n```bash\nexport supermode=YOUR_CHOICE\n```\n\nIt must be set to one of the GUI back-ends supported by [EasyBashGUI](https://github.com/BashGui/easybashgui/).\n\nAt the time of writing, supported modes are:\n\n- `dialog`: ncurses terminal based GUI (good for WSL)\n- `none`: uses internal shell-based EBG GUI, which uses `echo` and `read`\n- `zenity`: GTK-based GUI for GNOME-base desktops, with a Windows port (see below)\n- `yad`, `gtkdialog`, `xdialog`: other GTK-based GUIs for GNOME-based desktops\n- `kdialog`: Qt5-based GUI for KDE or Qt-based desktops\n\nNeedless to say, unless you're using `none`, the desired GUI back-end needs to be installed.\n\nIf you're using WSL and you don't want to use a terminal-based GUI, you need an X11 server such as [VcXsrv](https://sourceforge.net/projects/vcxsrv/).\nOtherwise you can use Zenity for Windows.\n\nDefault is determined by EasyBashGUI. On GNU/Linux it will pick a GUI dialog that fits with the running desktop environment, falling back to a TUI dialog. On Windows, a TUI dialog will run unless configured.\n\n#### Zenity on Windows\n\n*Note: This was only tested on WSL1. WSL2 might have additional shenanigans.*\n\nThe script includes an experimental wrapper for [native Windows Zenity](https://github.com/maravento/winzenity) on WSL.\n\nTo make it work, you need to:\n- Download WinZenity: https://github.com/maravento/winzenity\n- Place it somewhere in your Windows drive (i.e. `C:\\Program Files\\zenity.exe`)\n- Add this line to your `~/.shcrtrc`:\n  ```bash\n  alias zenity.exe=\"'/mnt/c/path/to/your/zenity.exe'\"\n  # for example\n  alias zenity.exe=\"'/mnt/c/Program Files/zenity.exe'\"\n  ```\n- Notice how you need to put double quotes to take into account for the spaces in the file path.\n \n### Emojis\n```bash\nexport emojis=YOUR_CHOICE\n```\n\nForce enable/disable emojis. Emojis are enabled by default on GNU/Linux, and disabled on WSL.\nIf you're using a custom terminal that supports emojis you can force-enable them on Windows too.\n\n- `auto`: always display emojis on GNU/Linux, disabled on WSL because of crappy terminal\n- `yes`, `no`: force enable/disable\n\n### Custom SecureCRT config path\n```bash\nexport crtconfig=\"/path/to/your/Config\"\n```\n\nOverrides default SecureCRT config paths:\n- GNU/Linux: `~/.vandyke/SecureCRT/Config`\n- Windows: `%APPDATA%/VanDyke/Config` (⇒ usually `/mnt/c/Users/your.user/AppData/VanDyke/Config`)\n\n### SFTP client helper\n\nIn order to run an SFTP client, a helper script/function must be provided.\nThe helper needs to accept a ssh-like command line. It can be provided as a bash function or as a binary in `$PATH`.\n\nBy default, if nothing is provided the program will display an error message.\n\nA FileZilla helper is provided and it should work on GNU/Linux and Windows on WSL.\nTo enable it, add the following to your `.shcrtrc`:\n\n```bash\nexport sftp_client_runner=run_filezilla\n```\n\nThe FileZilla helper source code can be found in `sftp_runners.sh`\n\n### Default session action\n```bash\nexport default_action=\"ask\"\n```\n\nSets an action that will always be run immediately when selecting a session.\nDefault is `ask`. Available options are:\n\n- `ask`: let user pick an action from a menu\n- `print`: print session details to console and exit\n- `exec_ssh`: execute ssh\n- `exec_sftp`: execute SFTP helper (it needs to be provided)\n\n## Bugs\n\nI expect it to be full of bugs; so should you.\n\nPlease report any bugs you find on GitHub :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepau%2Fshcrt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdepau%2Fshcrt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepau%2Fshcrt/lists"}