Friday, October 26, 2018

SSH tools setup using Yubikey in windows


Note: Only public key is needed

Download and install GPG4win (Currently 3.1.4)

Import the public key using Kleopatra or gnupg tools
Gpg --import etc.
run: gpg --card-status this will fill the private key stubs

Convert the public key to SSH format
gpg --export-ssh-key titasraha@hotmail.com > c:\users\traha\Downloads\sshpubkey.txt

Append the ssh public key to authorized_keys section under <userhome>/.ssh

Use putty to connect leaving the key file location blank

Enable GPG4Win and Putty SSH hook
Open %APPDATA%\gnupg\
Comes out to C:\Users\{user}\AppData\Roaming\gnupg
Create/Edit file gpg-agent.conf
Add Line
enable-putty-support

Connect agent commands useful in case of problem with the card
To Start up (bye means start the agent but close the window)
"C:\Program Files (x86)\GnuPG\bin\gpg-connect-agent.exe" /bye

To force shutdown:
"C:\Program Files (x86)\GnuPG\bin\gpg-connect-agent.exe" killagent /bye

Filezilla
Works with Keybased auth, just leave the password blank

Git
Using windows git: https://git-scm.com

Just perform a regular install, choose PLink option during install
  • Make sure to download plink.exe
  • https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html


MySQL Workbench

Created a tunnel in putty


No comments:

Post a Comment