Metadata-Version: 2.1
Name: fssh
Version: 1.0.3
Summary: Fast SSH for UTCS students
Author-email: Michael Goppert <goppert@cs.utexas.edu>
License: MIT License
        
        Copyright (c) 2024 Michael Goppert
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/migopp/fssh
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: beautifulsoup4==4.12.2
Requires-Dist: certifi==2023.11.17
Requires-Dist: charset-normalizer==3.3.2
Requires-Dist: idna==3.6
Requires-Dist: pexpect==4.9.0
Requires-Dist: ptyprocess==0.7.0
Requires-Dist: pyperclip==1.8.2
Requires-Dist: requests==2.31.0
Requires-Dist: soupsieve==2.5
Requires-Dist: urllib3==2.1.0

# fssh 🐟

> pronounced "fish"

A fast SSH tool for UT Austin CS students.

# Introduction

SSH is tedious. Go to host machine list. Find optimal machine. Enter command. Interact. Login.

It could be faster.

![fssh-demo](https://github.com/migopp/fssh/assets/128272843/7f4c80c1-f871-438b-b1ee-99a1108de418)

# Installation

1. `pip install fssh`
2. run `fssh-setup`
3. profit 💰

# Usage

```
fssh
```

The above commmand will do __everything__ for you.

If that's not what you want, you can opt to add in the `-p` flag to print the optimal machine (it will also copy the correct command to your clipboard, i.e., `ssh <YOUR UTCS USERNAME>@<OPTIMAL HOST>.cs.utexas.edu`).

`fssh -h` for help (there's not a lot, it's pretty simple).

# UTCS Credentials

Part of SSH is entering your UTCS username and SSH passkey—fssh cannot bypass this, as it sadly is not magic. As such, to fully utilize fssh, [the script needs access to this information somehow](https://github.com/migopp/fssh/blob/main/src/fssh/__main__.py).

I have implemented this through a setup script that logs this information to your respective shell profile (where you keep your API keys and such). This information is recorded [_solely_](https://github.com/migopp/fssh/blob/main/src/fssh/setup.sh) on your local machine.

Still worried? You can bypass the passphrase component in `fssh-setup`, doing so will net you the `fssh -p` functionality when you call `fssh` by default. You will still need to give your username, but that's public information anyhow.

# Terminal Usage

The full `fssh` functionality works great for most terminals. Not so much for some fancier ones (_cough, cough Warp_). You may not get full functionality of your fancy terminal emulator. In such cases, the `fssh -p` command will probably do you best.
