I'm trying to connect to a Raspberry Pi via SFTP plugin for deploying files. There is another Raspberry Pi in between. So I need to jump from a, let's call it bastion server (first Raspberry Pi), to the actual destination (second Raspberry Pi). To the first RPi my PC (Windows) is connected by cable. The RPi then is connected to a WLAN. As well as the second RPi. No direct connection between my PC and the destination RPi. For convenience, I set up my ~/.ssh/config file as follows:
Code: Select all
Host bastion
Hostname bastion.local
User admin
Host destserver
Hostname destserver.local
User admin
ProxyCommand ssh bastion -W %h:%p bastion
I can connect to the first Raspberry Pi and deploy my files there. I did that several times, already.
I can connect via ssh in a terminal (windows powershell) to the destination RPi.
What doesn't work:
If I try to connect via SFTP plugin to destserver, I get an error saying
Code: Select all
Couldn't find host, getaddrinfo failed. (Actually in german: SFTP Error - Konnte Host nicht finden, getaddrinfo fehlgeschlagen.)
Best regards
Marco