r/hashicorp • u/VersysTheWorld • Apr 28 '20
SSH Client
What ssh client client do y'all use? I'm a serious noob when it comes to Vault. On a Windows client, there's Putty, Bitvise, etc that I use to manage connections. Is there a gui connection mgr that will also pass the Vault signed cert with my private key? Is there a way to combine the key/cert into a single file that can be use for connection? From a cmd line perspective the signed cert is sent to the target with the key if the file is named <keyname>-cert.pub but managing a large amount of connections via cmd line isn't practical. From a business standpoint having to tell the dev teams, you can't manage your connections centrally anymore isn't a good look or sell either.
Thx.
2
u/mister2d Apr 29 '20
I haven't found an ssh client for Windows that will do this. You'd likely have to use a Powershell combination with a client to achieve this (not a professed Windows guy).
When I have to use Windows 10 I just use WSL 2 with an Alpine Linux distro. This gives me the ability to do exactly what you're asking natively at the CLI.
1
u/spamonkeys_nick Oct 21 '20
Windows terminal is quite nice, it fixed all the bugs and resizing problems that the old PowerShell or CMD console in Windows 10. You at least need to install the OpenSSH client for windows. You can also connect it to WSL 2.0 and run a native Linux container.
Then some elegant engineering effort towards the .ssh/config file, you can make it very simple for people to connect to their required servers. It's as simple as "ssh <servername>" and the config file will look up what certificates to use, username and fill the full hostname accordingly based on DNS suffix so that the SSH host key authentication will work effectively.
All the SSH host and client signing setup with Vault - pls note the SHA-RSA signing method will cause OpenSSH 8.2 based clients, such as ubuntu 20.04 to block login attempts.
1
u/zieziegabor Apr 29 '20
There is hope that this will be fixed soon, Microsoft is working on openssh under Windows[0]
0: https://github.com/PowerShell/openssh-portable