https://github.com/punit-naik/ssh-cli
A Clojure library designed to interact with the SSH CLI to perform tasks like setting up passwordless SSH between machines, executing remote commands, performing SCP, etc.
https://github.com/punit-naik/ssh-cli
bash cli clojure scp shell ssh
Last synced: about 1 month ago
JSON representation
A Clojure library designed to interact with the SSH CLI to perform tasks like setting up passwordless SSH between machines, executing remote commands, performing SCP, etc.
- Host: GitHub
- URL: https://github.com/punit-naik/ssh-cli
- Owner: punit-naik
- License: epl-1.0
- Created: 2018-08-28T18:36:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-22T09:16:46.000Z (over 4 years ago)
- Last Synced: 2025-04-12T00:09:00.572Z (about 1 month ago)
- Topics: bash, cli, clojure, scp, shell, ssh
- Language: Clojure
- Size: 15.6 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://clojars.org/ssh-cli)
# ssh-cli
A Clojure library designed to interact with the SSH CLI to perform tasks like setting up passwordless SSH between machines, executing remote commands, performing SCP, etc.
## Requirements
You need to have the following installed:
```
sudo apt-get install -y openssh-server openssh-client
```
Chances are you already have the above installed :smiley:Install the following utility for passing passwords prompted by SSH in the CLI itself (non-interactive) i.e. if you are opting to authenticate via `password` and not a `private key` (the latter is recommended):
```
sudo apt-get install -y sshpass
```## Testing
**NOTE: Please paste your local machine's password as text in the `resources/passwd` file before continuing with the below command and also, please remove your public key from `~/.ssh/authorized_keys` if present!**
```
lein test
```## License
Copyright © 2018 [Punit Naik](https://github.com/punit-naik)
Distributed under the Eclipse Public License version 1.0.