Howto connect with Port number

Advertisement

Edward_van_Oranje
Joined:
Posts:
1
Location:
Netherlands

Howto connect with Port number

My script looks like this:
How can I connect with Port number 22?
It now default connects with Port number 21
open ftp://username:password@ftp.zomaarnaariets.nl
Thanks in advance
Edward

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,594
Location:
Prague, Czechia

Re: Howto connect with Port number

To connect with FTP protocol to non-standard port, use:
open ftp://username:password@ftp.zomaarnaariets.nl:22
Though port 22 is used with SSH/SFTP/SCP. So maybe you actually want to use SFTP protocol:
open sftp://username:password@ftp.zomaarnaariets.nl

Reply with quote

Advertisement

You can post new topics in this forum