ssh2-rs | Rust bindings for libssh2
kandi X-RAY | ssh2-rs Summary
kandi X-RAY | ssh2-rs Summary
Rust bindings for libssh2
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ssh2-rs
ssh2-rs Key Features
ssh2-rs Examples and Code Snippets
Community Discussions
Trending Discussions on ssh2-rs
QUESTION
I have generated a public and a private key using PuTTYgen and added the public key to my GitLab account, but when I try to clone the repository, it still wants a password.
I have read the following instructions from this site
Install Putty and related utilities
Set system environment variable in Windows(Control Panel\System and Security\System --> and clicking on "Advanced system settings" in the left pane. Then click on "Environment Variables") GIT_SSH=%path_to_plink.exe% (Note plink.exe goes into wherever you installed Putty)
Generate a ssh key using puttygen.exe (ssh2-rsa, 4096, comment=GitLab, and set a passphrase)
Add key to pageant.exe and the public key to your GitLab profile
Ensure you start a new command shell so that git recognizes the GIT_SSH value
Try these two commands to check connection first. This should give you a popup window that authenticates connection
set Git putty git@gitlab.com:%user%/%repo.git%
Usage:
- Start pagent.exe from Putty folder
- Add key to pageant.exe
I still don't understand step 5 and in step 6 I see no shell commands to do the test.
Can anyone help?
Update:
The issue was that I didn't restart my cmd. But now I get this message: The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is. The server's ssh-ed25519 key fingerprint is: ssh-ed25519 255 d7:0d:ca:f2:c1:01:46:80:68:4c:5d:e6:d4:52:f9:16 If you trust this host, enter "y" to add the key to PuTTY's cache and carry on connecting. If you want to carry on connecting just once, without adding the key to the cache, enter "n". If you do not trust this host, press Return to abandon the connection. Store key in cache? (y/n)
And it doesn't let me type anything there.
...ANSWER
Answered 2020-Oct-06 at 14:00Ensure you start a new command shell so that git recognizes the GIT_SSH value
Type git bash
, then "set|grep GIT_SSH
"
If the result is empty, the CMD session in which you opened your session did not inherit your Windows User environment variable. Open a new CMD.
But I would not recommend using Putty. Git for Windows comes with openssh, and that should be enough, in a git bash session
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ssh2-rs
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page