Giter Club home page Giter Club logo

creating_ssh_keys__on_windows's Introduction

Generating SSH-KEYS on Windows

In order to generate a key, type ssh-keygen and hit Enter. This will automatically generate the SSH keys.

On Windows 11, a 2048-bit RSA key is created. If you'd like to use a different algorithm โ€” GitHub recommends Ed25519, for example โ€” then you'd type ssh-keygen -t ed25519.

C:\User> ssh-keygen -t ed25519

Switch to the specified directory where the key will be stored and run the following command to view its contents(Using git bash or bash for convenience):

$ cd /path/to/key && cat your-key.pub

Authenticating via SSH

In case you are indeed using the SSH URL, but still are asked for username and password when git pushing:

git remote set-url origin [email protected]:<Username>/<Project>.git

Troubleshooting can be done by running the following command:

Sample output:

debug1: Trying private key: /c/Users/Username/.ssh/id_rsa
debug1: Trying private key: /c/Users/Username/.ssh/id_dsa
debug1: Trying private key: /c/Users/Username/.ssh/id_ecdsa
debug1: Trying private key: /c/Users/Username/.ssh/id_ed25519
debug1: No more authentication methods to try.
Permission denied (publickey).

NOTE: The following response will be generated if a key-value pair doesn't exist

  • After generating a valid key-value pair, the following response will be genrated
debug1: Authentication succeeded (publickey).
Authenticated to github.com ([196.04.255.321]:22).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug1: Sending environment.
debug1: Sending env LANG = C.UTF-8
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
Hi <username>! You've successfully authenticated, but GitHub does not provide shell access.

creating_ssh_keys__on_windows's People

Contributors

lexara-prime-ai avatar

Watchers

 avatar

Forkers

muchokiesther

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.