Starting ssh-agent on Windows 10 fails: “unable to start ssh-agent service, error :1058”

Yeah, as others have suggested, this error seems to mean that ssh-agent is installed but its service (on windows) hasn’t been started. You can check this by running in Windows PowerShell: > Get-Service ssh-agent And then check the output of status is not running. Status Name DisplayName —— —- ———– Stopped ssh-agent OpenSSH Authentication Agent … Read more

Cross Compile OpenSSH for ARM

To cross compile openSHH for ARM (in my case a mini2440) I did following: Install arm cross compiler – (eg. what is arm-linux-gcc and how to install this in ubuntu) Download: Zlib OpenSSL OpenSSH Build Zlib: cd zlib-1.2.7 CC=arm-linux-gnueabi-gcc ./configure –prefix=$HOME/zlibArm make make install Build OpenSSL: export cross=arm-linux-gnueabi- cd openssl-1.0.1c ./Configure dist –prefix=$HOME/opensslArm make CC=”${cross}gcc” … Read more

Setting up OpenSSH for Windows using public key authentication

Following are setup steps for OpenSSH shipped with Windows 10 v.1803 (April 2018 update. See comments to this post, it might not work with 1809). Server setup (elevated powershell): Install OpenSSH server: Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0. Start agent and sshd services: Start-Service ssh-agent; Start-Service sshd (this will generate host keys and default configuration automatically in … Read more

Convert pem key to ssh-rsa format

No need to compile stuff. You can do the same with ssh-keygen: ssh-keygen -f pub1key.pub -i will read the public key in openssl format from pub1key.pub and output it in OpenSSH format. Note: In some cases you will need to specify the input format: ssh-keygen -f pub1key.pub -i -mPKCS8 From the ssh-keygen docs (From man … Read more

Best way to use multiple SSH private keys on one client [closed]

From my .ssh/config: Host myshortname realname.example.com HostName realname.example.com IdentityFile ~/.ssh/realname_rsa # private key for realname User remoteusername Host myother realname2.example.org HostName realname2.example.org IdentityFile ~/.ssh/realname2_rsa # different private key for realname2 User remoteusername Then you can use the following to connect: ssh myshortname ssh myother And so on.