sudo -u root sftp -F /var/etc/acme-client/sftp-config/config user@host.behind.jump.host
Failed to connect to host.{ "actions": [ "connecting" ], "success": false, "connection_closed": true, "error": "Connection closed.", "connect_failed": true }
Host jump.host User user Port 22 HostName <ip> HostKeyAlias jump.host IdentitiesOnly yes IdentityFile /var/etc/acme-client/sftp-config/id.ed25519 PasswordAuthentication noHost host.behind.jump.host User user Port 22 HostName <private-ip> ProxyJump jump.host IdentityFile /var/etc/acme-client/sftp-config/id.ed25519
$ sudo ./upload_sftp.php --log --host=host.behind.jump.host --port=22 --identity-type=ed25519 --user=user test-connectionINFO: Logging to stdout enabledINFO: No host key specified, using existing known_hosts entry for 'host.behind.jump.host'The authenticity of host '[192.168.1.5]:22 (<no hostip for proxy command>)' can't be established.ED25519 key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.No matching host key fingerprint found in DNS.This key is not known by any other names.Are you sure you want to continue connecting (yes/no/[fingerprint])? yesINFO: SFTP: Warning: Permanently added '[192.168.1.5]:22' (ED25519) to the list of known hosts.INFO: SFTP: Connected to host.behind.jump.host.INFO: SFTP: sftp> pwdINFO: SFTP: sftp> ls -laINFO: SFTP: sftp> put '/tmp/sftp-upload-4PBEJw' 'sftp-upload-4PBEJw'INFO: SFTP: Uploading /tmp/sftp-upload-4PBEJw to /home/user/sftp-upload-4PBEJwINFO: SFTP: sftp> rm '/home/user/sftp-upload-4PBEJw'INFO: SFTP: Removing /home/user/sftp-upload-4PBEJwINFO: SFTP: sftp> exit