Multiple Public keys for one SFTP account?

Please post here if you have problems in using Wing FTP Server.
Post Reply
bigcolwell
Posts: 4
Joined: Wed Feb 13, 2013 10:06 pm

Multiple Public keys for one SFTP account?

Post by bigcolwell »

Hello,

I searched the forums and could not turn up this particular scenario apologies if already posted.

Wondering if its possible in WingFTP to setup multiple valid public keys with one FTP account when using Limit>SSH public key path option. Note I am using password less SSH. I had been working around this previously by creating a new ID for each server that needs to access (then just point to the same location). However as this grows it will become more difficult plus this client would like to use the same ID to simplify their scripts across dev, test and prod environments.

I have tried appending the public key file (paste in the second key below the first) but the first server connects no problem the second gives "Public key authentication failed."

Note I am running WingFTP server 4.1.3
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Multiple Public keys for one SFTP account?

Post by FTP »

Not possible, one user one password, or one user one SSH public key.
hadaoo
Posts: 1
Joined: Mon Jan 02, 2023 1:07 am

Re: Multiple Public keys for one SFTP account?

Post by hadaoo »

Improvement - Now SFTP server supports multiple ssh key authentication attempts.
It is treated as a kind of "authorized_keys". You can insert multiple public keys.
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Multiple Public keys for one SFTP account?

Post by FTP »

Yes, WingFTP supports multiple SSH public keys in one file, you can combine multiple public keys into a single file:

---- BEGIN SSH2 PUBLIC KEY ----
xxxxx...
---- END SSH2 PUBLIC KEY ----
---- BEGIN SSH2 PUBLIC KEY ----
xxxxx...
---- END SSH2 PUBLIC KEY ----
---- BEGIN SSH2 PUBLIC KEY ----
xxxxx...
---- END SSH2 PUBLIC KEY ----
Post Reply