• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
1

SFTP/SSH using Public Key File not working

New Here ,
Mar 27, 2017 Mar 27, 2017

Copy link to clipboard

Copied

I have a public/private key pair which I can connect to using the command line (linux subsystem in Windows 10) but when I try to create a server connection using Private Key File: and enter the username, point to the identity file (private key) and enter the passphrase, the FTP connection fails saying invalid username and password (as if it's trying to still send UN/PW creds). 

I tail the logs on the server and am seeing the same information that the connection is closed due to invalid username and password (which it shouldn't be doing since this is an SSH key connection).  I've tried just regular open SSH keys and ppk formated keys with no joy.

Has anyone else had this issue?   Does this side of the Authentication settings in Site Setup even work?

Views

12.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 3 Correct answers

New Here , Apr 16, 2017 Apr 16, 2017

I had the same issue.

Got it solved by using keys that were generated with ssh-keygen.

I have used the one which is shipped with GIT bash (https://git-scm.com/downloads).

Before that, I was trying to use keys (every available type) that were generated with puttygen.exe (they were working with Putty and FileZilla) and I got the same errors.

Votes

Translate

Translate
Explorer , May 28, 2018 May 28, 2018

I use PuttyGen Convert to generate my key pair, and then export a PPK version of the key that works in FileZilla but not in Dreamweaver, and then from PuttyGen export an OpenSSH version of the key that works fine in Dreamweaver. So you can create keys for both in PuttyGen, and then put the public key generated from PuttyGen on the server you are connecting to.

Votes

Translate

Translate
Adobe Employee , May 29, 2018 May 29, 2018

Hi All,

Dreamweaver does not support .ppk file. Please convert the .ppk file into .pem file using putty generator and try it out.

It should solve the problem.

Thanks,

Mahak Kudyar

Adobe Dreamweaver

Votes

Translate

Translate
Community Expert ,
Mar 27, 2017 Mar 27, 2017

Copy link to clipboard

Copied

Depends on the type of Key.  ED25519 is not yet supported in DW.   See related discussion below.

Dreamweaver SFTP with ED25519 Key

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 27, 2017 Mar 27, 2017

Copy link to clipboard

Copied

Nancy,

No it's not ED25519.  Just a straight rsa key generated with

ssh-keygen -t rsa -C "email@domain.com"

But your link, and specifically the text "Dw does not yet support ed25519Key as this support was added to OpenSSL 1.1.0 and OpenSSL 1.0.2h in Aug 2016.", got me thinking that maybe I need to spec -t rsa1 to make the key a little more backward compatible (-t rsa defaults to rsa protocol v2 while -t rsa1 uses v1).  Tried that and still no joy.

My DW rev is 2017.0.1 so if you have any other ideas, I appreciate the consideration.

Thanks,

Craig

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 13, 2017 Apr 13, 2017

Copy link to clipboard

Copied

I am having this same issue. I'm using DW 2017.

I've generated an RSA key file.
I've tested the RSA key file using WinSCP--it works just fine with WinSCP.

When I set this up in the DW site manager and test, DW tells me there's something wrong with the username and password---but, I'm not using a password.

I'd sure like to know how to get this fixed.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 16, 2017 Apr 16, 2017

Copy link to clipboard

Copied

I had the same issue.

Got it solved by using keys that were generated with ssh-keygen.

I have used the one which is shipped with GIT bash (https://git-scm.com/downloads).

Before that, I was trying to use keys (every available type) that were generated with puttygen.exe (they were working with Putty and FileZilla) and I got the same errors.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 21, 2017 Aug 21, 2017

Copy link to clipboard

Copied

Using the original .pem key did the trick for me:

DreamweaverSftp.png

I am using Dreamweaver CC 2017.5

Hope it can help.

4cruzeta

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 28, 2018 May 28, 2018

Copy link to clipboard

Copied

I use PuttyGen Convert to generate my key pair, and then export a PPK version of the key that works in FileZilla but not in Dreamweaver, and then from PuttyGen export an OpenSSH version of the key that works fine in Dreamweaver. So you can create keys for both in PuttyGen, and then put the public key generated from PuttyGen on the server you are connecting to.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 03, 2018 Jul 03, 2018

Copy link to clipboard

Copied

I use PuttyGen Convert to generate my key pair, and then export a PPK version of the key that works in FileZilla but not in Dreamweaver, and then from PuttyGen export an OpenSSH version of the key that works fine in Dreamweaver. So you can create keys for both in PuttyGen, and then put the public key generated from PuttyGen on the server you are connecting to.

this did the trickfor me. No need to download any other software.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 15, 2020 Jan 15, 2020

Copy link to clipboard

Copied

This worked for me as well on DW2019

Thanks!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 08, 2020 Sep 08, 2020

Copy link to clipboard

Copied

LATEST

This should be marked as the correct answer. Dreamweaver need the OpenSSH version of the private key. You can convert an existing key loading it in Puttygen, then choose "Conversions>Esport OpenSSH Key" and save the key without filename extension.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 29, 2018 May 29, 2018

Copy link to clipboard

Copied

Hi All,

Dreamweaver does not support .ppk file. Please convert the .ppk file into .pem file using putty generator and try it out.

It should solve the problem.

Thanks,

Mahak Kudyar

Adobe Dreamweaver

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines