Changes between Version 52 and Version 53 of cypress/SshUsage


Ignore:
Timestamp:
06/01/23 13:14:43 (18 months ago)
Author:
cbaribault
Comment:

Added steps for editing ~/.ssh/config to avoid Error: no matching key

Legend:

Unmodified
Added
Removed
Modified
  • cypress/SshUsage

    v52 v53  
    190190[[Image(https://docs.google.com/drawings/d/e/2PACX-1vSlffILDUxxzh_QpD4M7P5-bY_tCkYNjA9xIYWuUUqz_HBBczQ18o5AWA9OZ5_w5Q0bwQJbdgmUCuMJ/pub?w=594&h=209, center)]]
    191191
    192 > If you encounter the error below:
     192==== In Case Of Error: no matching host key type ====
     193
     194If you encounter the error below:
    193195{{{
    194196$ssh userid@cypress.tulane.edu
    195197Error msg: Unable to negotiate with xx.xx.xx.xx port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss
    196198}}}
    197 > Add the following lines to ~/.ssh/config on your local computer.
     199Add the following lines to ~/.ssh/config on your local computer.
    198200{{{
    199201Host cypress.tulane.edu
     
    202204        PubkeyAcceptedKeyTypes=+ssh-rsa
    203205}}}
     206
     207If the file ~/.ssh/config doesn't exist yet on your local computer, you may need to create the directory ~/.ssh and/or create and edit the file ~/.ssh/config.
     208
     209On Linux, Mac, and WSL, if you prefer, you can do so using the command line in your terminal window via the following.
     210{{{
     211cd  # change the current directory to your home directory as needed
     212mkdir -p .ssh # create the subdirectory .ssh as needed
     213cd .ssh # change to that subdirectory
     214nano config # create, as needed, and edit and save the file named config.
     215}}}
     216For file editing with nano, etc., see [[https://wiki.hpc.tulane.edu/trac/wiki/cypress/FileEditingSoftware/Example|File Editing Example]].
     217
     218In the case of nano, you can simply copy and paste the contents into the window and save the result.
     219
     220For Windows terminal, you can open a window for notepad from the command line via the following.
     221{{{
     222cd &rem change directory to your home directory
     223notepad .ssh\config
     224}}}
     225Note that the hostname included in the file must match the hostname that you used in your **ssh** command.
    204226
    205227[[cypress/ssh_public-key_authentication | ssh Public-key Authentication]]