How to FTP to and from a server that is accessible only via authentication-key pair
Thursday, December 23, 2021
Scenario
Your backend is accessible only through ssh key-pairing but you have the need to use an FTP program like FileZilla to transfer a file from or to a local machine.
Temporarily disable the ssh only access
From the command line:
sudo nano /etc/ssh/sshd_config
- Set
PasswordAuthentication
toyes
sudo service sshd restart
From your FTP application
- Host
sftp://your.ip.add.ress
- Supply your username (do not use the root) and password
- Get connected
When done with your task, revert the PasswordAuthentication
to no
.
Category
Comments