set up the FileZilla - Client on a new installed Notebook with all the credentials - how to proceed?

dhubs

Active Member
Joined
Nov 5, 2024
Messages
135
Reaction score
68
Credits
2,225
good day dear Linux-friends,:)

first of all: greetings and - a happy Xmas- Season... to all of you

.... i am currently at (the holliday season) "extra-work":

set up the FileZilla - Clent on a new installed Notebook - and the question is: how to proceed?

as i am not completly sure that i met all the important points - i have tried to clear up the process - and the steps:
i have tried to find all the necessary steps - and took some hours of searching the web:

plz do me a favor: - could you review the process-steps. Are they correct!?

see my assumptions:

well i have to add some xml-data -/key file) i guess
therefore i head over to the

"public key authentification"

to support the public key authentification FileZilla needs to know the private key.

but after entering Private key / (the Public Key) Authentication:

like so: In order to support public key authentication, FileZilla needs to know which private keys to use.
( Private key: ) - and then then I get back:

FileZilla_data_.xml could not be loaded or does not contain a private key

this leads me to the following thing - well i think that i have to import the xml-file: is this all i have to do to make the FileZilla working?

the next step - after several: hours: ...well at the moment i am going to do it again - to get the data to a new (fresh installed) Notebook. As far as i understand this all - i guess that it is pretty straightforward:
well i need to do the following - on the old notebook

Code:
cd ~
cp -r ~/.config/filezilla ~/filezilla_backup
tar -czf filezilla_backup.tar.gz -C ~/.config filezilla

then i need to transfer the tarball to my new notepad through usb or networkshare, etc then the following steps follow up:

Code:
sudo apt install filezilla
tar -xzf filezilla_backup.tar.gz -C ~/.config/
cp -r ~/filezilla_backup ~/.config/filezilla
chmod -R 700 ~/.config/filezilla

hmmm - i guess that this is the work on the complete Config-foldr tar/backup/restore
i guess that this method is just good for Linux→Linux

to sume up: i guess that i need to cover the following steps:

.... on the old notebook

1. FileZilla open
2. File → Export
3. Export the stuff

  • Site Manager
  • Settings (optional)
4. Private Key separat sichern

Code:
   bash
   priv_serverkey

....and subsequently - then on the new Linux-Notebook

1. FileZilla installiing
2. Private Key to:

Code:
bash
   ~/.ssh/priv_serverkey
   chmod 600 ~/.ssh/priv_serverkey

and subsequently:

3. FileZilla → File → Import
4. eventually :

Code:
 * Site Manager open
   * **Key-Pfad customizing
[code]


hmm - or i go alternative

[code]
bash
cp -r ~/.config/filezilla ~/.config/filezilla.bak
Keys separate copy
only when the same ** User & Version**



what - what do you think about my assumptions !? about the process:
i guess that the following assumptions is important:

FileZilla stores Credentials im XML
* Private Keys sare note embedded

and the Keys must: things..

...and that means - beeing:
  • copied
  • correkt referenciated
  • chmod 600 hve
  • Export/Import is most convineiend
  • Linux - as a guess - is here just simpler

well - could you confirm the rundown - is this a way that i can go!?

if so: i really hope this helps others too-

i look forward to hear from you.,.

greetings and - a happy Xmas- Season and merry christmas :)... to all of you




update: i did some further research and found out..

Code:
ls -l /home/ubuntu/Dokumente/_webserver_/

and subsequently:

Code:
ubuntu@T420s:~$ ls ~/.ssh
authorized_keys
ubuntu@T420s:~$ ls -l /home/ubuntu/Dokumente/_webserver_/
insgesamt 27904
drwxr-xr-x 2 ubuntu ubuntu     4096 Mai  7  2024 maerz_2025
-rw-r--r-- 1 ubuntu ubuntu     1460 Dez  7  2018 priv_serverkey
drwxrwxr-x 4 ubuntu ubuntu     4096 Sep 13 18:02 _wordpress_
ubuntu@T420s:~$


well - that says:

FileZilla works
the private key exists
it is NOT in ~/.ssh/

but it is here:

Code:
ls -l /home/ubuntu/Dokumente/_webserver_/priv_serverkey

that means: i found out that:...
... the XML file does not contain the Key,
.... but it reveals the exact path to the Key

with that i have to secure the Key (USB, new Notebook, etc.) - eg. like so:

Code:
cp /home/ubuntu/Dokumente/_webserver_/priv_serverkey /media/usb/

this could lead to

Code:
cp /home/ubuntu/Dokumente/_webserver_/priv_serverkey.pub /media/usb/

that means i - can on the new Notebook which will run EndeavourOS) the
Key store in a good manner ( as a - hmm lets say "Best Practice")

Code:
mkdir -p ~/.ssh
cp /media/usb/priv_serverkey ~/.ssh/
chmod 600 ~/.ssh/priv_serverkey

or hmm - optionally:

Code:
chmod 644 ~/.ssh/priv_serverkey.pub

that means that i can put fileZilla to the new System with the following steps

FileZilla install

File → Import → the XML

Site Manager open


Private key file set on:

Code:
/home/<My_USER>/.ssh/priv_serverkey

finally to sume up: TL;DR – conclusio

the XML says FileZilla, which Key it has to use –
and yes: the file priv_serverkey is the key.


hope this will help others HERE too

greetings and - a happy Xmas- Season and merry christmas ... to all of you

update: this here - this is the path:

1767454935189.png


it contains the following formate of data:

Code:
PuTTY-User-Key-File-2: ssh-rsa
Encryption: aes256-cbc
Comment: imported-openssh-key
Public-Lines: 6
AAAAB3NzaC1yc2EAAAADAQABAAABAQDLHfbMDQi/vKD2go338zXV1WXLCt2j9qp/
q5WoSUItvXcr89BPltn1IblUtGXBcD1QU1btO9Y4+a+JPBvVf6d/GfGKcsKhZaMP
dzu388Vm/0CMuj7BcZb7+B0trKBDyRJfxBDHQe+8OXi2NBUXL+dK0VXvG5+kmTx8
8a/zFuMpXmPwfOUWk5irEpPNklA2DD8tydmjsfobuRxNkNhs3oInt4XAXYJAgva8
2vJ/JzM8vrTfERP0EYRChrWowp6JfD/xhvaSRNW3ipk/HgDdC0TbkegIzRHN3p/J
BMvgTKoIu5rfBrelmzAEZMOWD4blty+mA7m6VtldluT/sgKIOJlV
Private-Lines: 14

hope this helps others too

:)
 
Last edited:


Follow Linux.org

Members online


Top