Problems setting FTP connection via Tramp

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems setting FTP connection via Tramp

Adam Faryna
Hi,

As discussed in SX post (link below), I tried to setup FTP connection between Tramp and Android FTP server, but without success. Connecting via Terminal FTP client works without problems. I use Tramp for ssh connections without problems, as well.


OS: macOS 10.15.7
Emacs: GNU Emacs 27.1.90 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H2))

Thanks,
Adam
Reply | Threaded
Open this post in threaded view
|

Re: Problems setting FTP connection via Tramp

Michael Albinus
Adam Faryna <[hidden email]> writes:

> Hi,

Hi Adam,

> As discussed in SX post (link below), I tried to setup FTP connection
> between Tramp and Android FTP server, but without success. Connecting
> via Terminal FTP client works without problems. I use Tramp for ssh
> connections without problems, as well.
>
> Original post with more details:
> https://emacs.stackexchange.com/questions/63085/problems-with-ftp-connection-via-tramp
>
>
> OS: macOS 10.15.7
> Emacs: GNU Emacs 27.1.90 (build 1, x86_64-apple-darwin19.6.0, NS
> appkit-1894.60 Version 10.15.7 (Build 19H2))

There shall be a buffer *ftp user@host*. Pls show this.

> Thanks,
> Adam

Best regards, Michael.

Reply | Threaded
Open this post in threaded view
|

Re: Problems setting FTP connection via Tramp

Adam Faryna
Entire content of the buffer:

ftp> open 192.168.0.21
ftp: Can't connect to `192.168.0.21:21': Connection refused
ftp: Can't connect to `192.168.0.21:ftp'
ftp>

I see the wrong port is selected. I tried to connect to port 2221 but it used 21.

On Wed, 3 Feb 2021 at 12:01, Michael Albinus <[hidden email]> wrote:
Adam Faryna <[hidden email]> writes:

> Hi,

Hi Adam,

> As discussed in SX post (link below), I tried to setup FTP connection
> between Tramp and Android FTP server, but without success. Connecting
> via Terminal FTP client works without problems. I use Tramp for ssh
> connections without problems, as well.
>
> Original post with more details:
> https://emacs.stackexchange.com/questions/63085/problems-with-ftp-connection-via-tramp
>
>
> OS: macOS 10.15.7
> Emacs: GNU Emacs 27.1.90 (build 1, x86_64-apple-darwin19.6.0, NS
> appkit-1894.60 Version 10.15.7 (Build 19H2))

There shall be a buffer *ftp user@host*. Pls show this.

> Thanks,
> Adam

Best regards, Michael.
Reply | Threaded
Open this post in threaded view
|

Re: Problems setting FTP connection via Tramp

Michael Albinus
Adam Faryna <[hidden email]> writes:

Hi Adam,

> Entire content of the buffer:
>
> ftp> open 192.168.0.21
> ftp: Can't connect to `192.168.0.21:21': Connection refused
> ftp: Can't connect to `192.168.0.21:ftp'
> ftp>
>
> I see the wrong port is selected. I tried to connect to port 2221 but
> it used 21.

It works for me.

Rereading what you have said on SX, I believe you use the wrong
syntax. You have tried "/ftp:[hidden email]:#2221:/storage/0123-4567".
However, it must be "/ftp:[hidden email]#2221:/storage/0123-4567".

> Thanks,
> Adam

Best regards, Michael.

Reply | Threaded
Open this post in threaded view
|

Re: Problems setting FTP connection via Tramp

Michael Albinus
Adam Faryna <[hidden email]> writes:

Hi Adam,

> Thanks a lot Michael.
>
> Yes, that was probably the case.
>
> I tried now:
> "/ftp:francis@192.168.0.21#2221:~/"
>
> And it's working perfectly.

Good, so there's no error in the code.

> Thanks,
> Adam

Best regards, Michael.

Reply | Threaded
Open this post in threaded view
|

Re: Problems setting FTP connection via Tramp

Adam Faryna
Nope, the code is fine.

Thanks a lot for your help.

On Thu, 4 Feb 2021 at 15:17, Michael Albinus <[hidden email]> wrote:
Adam Faryna <[hidden email]> writes:

Hi Adam,

> Thanks a lot Michael.
>
> Yes, that was probably the case.
>
> I tried now:
> "/ftp:francis@192.168.0.21#2221:~/"
>
> And it's working perfectly.

Good, so there's no error in the code.

> Thanks,
> Adam

Best regards, Michael.