Starting SFTP (with PPK) from commandline ?

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
Mirco75
500 Command not understood
Posts: 4
Joined: 2019-04-24 09:48
First name: Mirco
Last name: Babin

Starting SFTP (with PPK) from commandline ?

#1 Post by Mirco75 » 2019-04-24 09:53

Hello,

I'm using KeePass to start FileZilla Client. All my passwords are in KeePass, in FileZilla no site is registered. KeePass starts FileZilla via (and this works perfectly):

Code: Select all

"C:\Program Files\FileZilla FTP Client\filezilla.exe" username:password@url

But now I want to connect to Amazon using SFTP. I have a PPK file, but don't want to create an entry in FileZilla sitemanager.
Is it possible to initiate a sftp connection from the commandline ? And provide the PPK file via the commandline ?

Something like:

Code: Select all

"C:\Program Files\FileZilla FTP Client\filezilla.exe" ....amazon.com -keyfile c:\mykey.ppk

Kind regards,
Mirco Babin (The Netherlands)

User avatar
botg
Site Admin
Posts: 33515
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Starting SFTP (with PPK) from commandline ?

#2 Post by botg » 2019-04-24 13:16

Passwords should not be passed on the command-line as that's not secure.

To use sftp:// prefix the URI with sftp://

Note that the username is part of the URI, it's the userinfo part of the URI's authority part.

You can configure keyfiles in the settings dialog of FileZilla.

Mirco75
500 Command not understood
Posts: 4
Joined: 2019-04-24 09:48
First name: Mirco
Last name: Babin

Re: Starting SFTP (with PPK) from commandline ?

#3 Post by Mirco75 » 2019-04-25 06:48

Thanx for your reply botg.

Using the sftp:// url syntax:

Code: Select all

filezilla.exe sftp://username:@ipadres
Does not work, because the PPK keyfile is missing. Filezilla gives (Dutch text):

Code: Select all

Status:	Verbinden met ipadres...
Antwoord:	fzSftp started, protocol_version=8
Opdracht:	open "username@ipadres" 22
Fout:	Disconnected: No supported authentication methods available (server sent: publickey)
Fout:	Kan niet verbinden met server
How can I specify the PPK file to be used for authentication on the commandline ?

User avatar
botg
Site Admin
Posts: 33515
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Starting SFTP (with PPK) from commandline ?

#4 Post by botg » 2019-04-25 07:39

You can't. You can configure the key file in the settings instead.

Mirco75
500 Command not understood
Posts: 4
Joined: 2019-04-24 09:48
First name: Mirco
Last name: Babin

Re: Starting SFTP (with PPK) from commandline ?

#5 Post by Mirco75 » 2019-04-25 09:52

I want to request for this feature to be added, to specify the PPK keyfile on the commandline.

Is there a place where I can request this ?

Post Reply