Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add helper output for connecting after running add-to-ssh-agent #32

Closed
wants to merge 10 commits into from

Commits on Mar 19, 2020

  1. Add helper output for connecting after running add-to-ssh-agent

    The function definition header has help how to connect
    to the server whose key we've added to the ssh-agent, on
    the other hand the tabular output is both different order
    and would still require knowledge of the ssh parameters.
    
    This change fills in the command with the server variables
    and adds some extra flags that help to be less noisy later:
    not adding the server's key to the known hosts file, and
    not checking the server's key.
    
    ```
    Hostname          Port  Username
    123.123.123.123   12345  faculty
    
    Connect to the server by:
    ssh [email protected] -p 12345 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
    ```
    
    It should work both on Linux/Mac and Windows as the relevant
    null device is substituted in the command example.
    
    Signed-off-by: Gergely Imreh <[email protected]>
    imrehg committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    4fedbb1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b651327 View commit details
    Browse the repository at this point in the history
  3. Redo string output with format

    Since older Pythons don't do f-strings, duh.
    
    Signed-off-by: Gergely Imreh <[email protected]>
    imrehg committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    d5da1d8 View commit details
    Browse the repository at this point in the history
  4. Update flake8 check to follow black's formatting

    Otherwise can run into issues that black formats lines one
    way, but flake8 doesn't accept the formatting choices.
    
    Signed-off-by: Gergely Imreh <[email protected]>
    imrehg committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    fe1bfcb View commit details
    Browse the repository at this point in the history
  5. Revert "Update flake8 check to follow black's formatting" due to Pyth…

    …on 2
    
    This reverts commit fe1bfcb.
    imrehg committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    53d53d2 View commit details
    Browse the repository at this point in the history
  6. Simplify output formatting and linter setup.

    Signed-off-by: Gergely Imreh <[email protected]>
    imrehg committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    a0209d7 View commit details
    Browse the repository at this point in the history
  7. More formatting, as newer black does things differently.

    Signed-off-by: Gergely Imreh <[email protected]>
    imrehg committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    2e8eec9 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2020

  1. Remove ineffective flake8 setting, update grammar, reformat string

    The awkward string formatting is necessary as `black` doesn't break
    long strings but `flake8` despises them.
    
    Signed-off-by: Gergely Imreh <[email protected]>
    imrehg committed Mar 21, 2020
    Configuration menu
    Copy the full SHA
    90b46ff View commit details
    Browse the repository at this point in the history
  2. Instruct flake8 to ignore long line errors, and string formatting

    Signed-off-by: Gergely Imreh <[email protected]>
    imrehg committed Mar 21, 2020
    Configuration menu
    Copy the full SHA
    1d6d9a9 View commit details
    Browse the repository at this point in the history
  3. Add another ignore to flake8, for usability and relying on black

    Signed-off-by: Gergely Imreh <[email protected]>
    imrehg committed Mar 21, 2020
    Configuration menu
    Copy the full SHA
    ef3e309 View commit details
    Browse the repository at this point in the history