{"id":27056548,"url":"https://github.com/charmitro/emacs-ssh-machines","last_synced_at":"2025-04-05T10:18:11.183Z","repository":{"id":225417241,"uuid":"765945194","full_name":"charmitro/emacs-ssh-machines","owner":"charmitro","description":"Emacs SSH Machines Management Tool","archived":false,"fork":false,"pushed_at":"2025-03-23T14:50:19.000Z","size":23,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T15:33:32.873Z","etag":null,"topics":["emacs","emacs-lisp","emacs-package","ssh"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","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/charmitro.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":"2024-03-01T23:44:15.000Z","updated_at":"2025-03-23T14:50:09.000Z","dependencies_parsed_at":"2024-04-18T01:25:06.035Z","dependency_job_id":"a92b5f9f-8fcf-40a0-abe3-a170186b92e8","html_url":"https://github.com/charmitro/emacs-ssh-machines","commit_stats":null,"previous_names":["charmitro/emacs-ssh-machines"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmitro%2Femacs-ssh-machines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmitro%2Femacs-ssh-machines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmitro%2Femacs-ssh-machines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmitro%2Femacs-ssh-machines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charmitro","download_url":"https://codeload.github.com/charmitro/emacs-ssh-machines/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318730,"owners_count":20919483,"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":["emacs","emacs-lisp","emacs-package","ssh"],"created_at":"2025-04-05T10:18:10.778Z","updated_at":"2025-04-05T10:18:11.159Z","avatar_url":"https://github.com/charmitro.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Emacs SSH Machines Management Tool\n\n## Overview\n\nThe Emacs SSH Machines Management Tool is designed to simplify the management of SSH connections directly within Emacs. This Emacs package allows users to efficiently manage a list of SSH machines, including adding, removing, listing, and connecting to them.\n\n## Features\n\n- **Add SSH Machines:** Users can easily add new SSH machines, specifying their name, address, and optional notes for each entry.\n- **Remove SSH Machines:** This feature allows for the removal of SSH machines from the list, keeping the configuration clean and up-to-date.\n- **List SSH Machines:** Displays a neatly formatted list of all configured SSH machines in an Emacs buffer, providing a quick overview of available connections.\n- **Connect to SSH Machines:** Enables users to connect to a selected SSH machine using the SSH protocol directly from Emacs, facilitating seamless remote work.\n- **Copy Files to remote:** Users can easily copy files from their local machine to the remote machine.\n- **SSH Key Management:** Manage your SSH keys directly from Emacs, including viewing, generating, and associating keys with specific servers.\n\n## Installation\n\nTo install the Emacs SSH Machines Management Tool, follow these steps:\n\n1. **Clone the Repository:**\n    Clone the tool's repository to a local directory.\n    ```shell\n    git clone https://github.com/yourusername/emacs-ssh-machines.git\n    ```\n\n2. **Copy the `init-ssh.el` File:**\n    Copy the `init-ssh.el` file into your `.emacs.d` directory or another directory within your Emacs load path.\n\n3. **Load the Tool:**\n    Include the following line in your Emacs configuration file (`.emacs` or `init.el`):\n    ```elisp\n    (require 'init-ssh)\n    ```\n\n## Usage\n\n### Adding a New SSH Machine\n\nInvoke `M-x add-ssh-machine` and input the machine's name, address, and notes as prompted to add a new SSH machine to your list.\n\n### Removing an SSH Machine\n\nExecute `M-x remove-ssh-machine` and select the machine you wish to remove from the presented list.\n\n### Listing SSH Machines\n\nTo view all configured SSH machines, use `M-x list-ssh-machines`. This will display the machines in a new Emacs buffer.\n\n### Connecting to an SSH Machine\n\nUse `M-x ssh-connect` and select the desired SSH machine to establish an SSH connection.\n\n### Copying a file to an SSH Machine\n\nTo copy a file from your local machine to the remote one, use `M-x copy-file-to-ssh-machine`. You will be prompted to select the file to copy, the target machin, and the remote destination path.\n\n### Managing SSH Keys\n\nThe SSH Machines Management Tool now includes comprehensive SSH key management features:\n\n#### Viewing SSH Keys\n\nUse `M-x ssh-list-keys` to display all your SSH keys in a buffer. This will show:\n- The names of your key files\n- Whether each key has a corresponding public key\n- Associated comments (typically email addresses)\n\n#### Generating SSH Keys\n\nExecute `M-x ssh-generate-key` to create a new SSH key pair. You will be prompted for:\n- Key type (RSA, Ed25519, ECDSA, or DSA)\n- Key name (filename)\n- Key comment (typically your email address)\n- For RSA keys, you can specify the bit length (2048 or 4096)\n\n#### Copying SSH Keys to Remote Servers\n\nUse `M-x ssh-copy-key` to copy a public key to a remote server. This simplifies the process of setting up key-based authentication.\n\n#### Associating Keys with Specific Servers\n\nExecute `M-x ssh-associate-key-with-machine` to link a specific SSH key with a server in your machines list. When you connect to this server using `M-x ssh-connect`, the associated key will be used automatically.\n\n## Configuration\n\nThe list of SSH machines is stored in the `ssh-machines-list` variable. This list is automatically updated as you add or remove machines through the Emacs commands provided by this tool.\n\n## Contributing\n\nIf you'd like to improve th9s tool, please fork the repository, create a feature branch for your changes, and submit a pull request.\n\n## License\n\nThis project is licensed under the GPL-3.0 License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\nSpecial thanks,\n\n- to the Emacs community for their invaluable resources and support, making tools like this possible.\n- to the Reddit community that helped me refine and make this better.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharmitro%2Femacs-ssh-machines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharmitro%2Femacs-ssh-machines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharmitro%2Femacs-ssh-machines/lists"}