Today I installed BitBucket server on Windows machine and having issues connecting with SSH keys.
I generated key using
PuTTY Key Generator, key type:
Then I pasted the public key in BitBucket's interface:
Administration -> Users -> Alex -> SSH Keys
But having issues connecting with Putty, here is debug information from plink.
C:\Users\Alex\Downloads>plink.exe -v -P 7999 localhost -i "..\.ssh\alex_key.ppk" Looking up host "localhost" Connecting to ::1 port 7999 We claim version: SSH-2.0-PuTTY_Release_0.67 Server version: SSH-2.0-SSHD-UNKNOWN Using SSH protocol version 2 Doing Diffie-Hellman group exchange Doing Diffie-Hellman key exchange with hash SHA-256 Host key fingerprint is: ssh-rsa 2048 87:10:63:c2:99:c4:d4:65:28:22:c6:8d:55:31:2c:4f Initialised AES-128 SDCTR client->server encryption Initialised HMAC-SHA-256 client->server MAC algorithm Initialised AES-128 SDCTR server->client encryption Initialised HMAC-SHA-256 server->client MAC algorithm Reading private key file "..\.ssh\alex_key.ppk" login as: [email protected] Offered public key Offer of public key accepted Authenticating with public key "rsa-key-20160728" Sent public key signature Access granted Opening session as main channel Opened main channel Allocated pty (ospeed 38400bps, ispeed 38400bps) Server refused to start a shell/command FATAL ERROR: Server refused to start a shell/command C:\Users\Alex\Downloads>